Site Building

Movie Project: Configure Search for Drupal 7

Last updated May 23, 2023
Categories
Up-to-date with minor version
7.x

Check your version

This tutorial covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

In this exercise you will demonstrate knowledge of core search by enabling site search, configuring the search display to format the content, and indexing the content.

Goal

Configure site search and index content.

Prerequisites

You will need the following knowledge and skills. If you need a review, check out the Additional resources section at the bottom of this page.

  1. Configure a content type to display search results.
  2. Index content for search.

Wireframe reference

You will need to refer to the wireframe collection PDF.

  • Search Results

Tasks

Allow anonymous users to access the search form.

Index the search content.

Test the search form.

Recap

  • When a user searches a form, the search runs on the index, not the nodes.
  • Apache SOLR is a popular alternative to search.
  • Search indexing is dependent on cron.

Further your understanding

Additional resources

Creative Commons License

Drupal Training Resources by Damian Robinson are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at http://www.damianrobinson.co.uk.

Hands-On Exercises: Movie Project