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.

Last updated February 16, 2017

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

Objectives and Prerequisites

You will need the following knowledge and skills. If you need a review, check out the 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.

Summary

  • 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.

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.