Setting up site search

In this recipe, we will see how to configure Drupal's native site search. The search feature is a part of the Drupal core module set. We will start by enabling the module, and then proceed to set up the search index. Finally, we will move the search block to the header.

How to do it...

  1. Log in to your site and select Modules from the admin menu.
  2. Locate the Search module, which is under the Core category, and make sure the checkbox is selected.
  3. To enable the module, scroll to the bottom of the page and click on Save configuration.
  4. Select Configuration from the admin menu.
  5. Select Search settings from the SEARCH AND METADATA category.
  6. Under INDEXING THROTTLE leave the Number of items to index per cron run at 100.
  7. Under the INDEXING ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.