Site Building

Movie Project: Configure Search for Drupal 7

Last updated
Categories
Up-to-date with minor version
7.x

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

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