Chapter 13. Searching and Indexing Content

Drupal's search module provides a feature-rich solution that meets the needs of most web sites. When the core search module doesn't provide the features and functionality you need for your site, you can expand on the core module through the Search API. In this chapter, I'll discuss how modules can hook into the search API and build custom search forms. We will also look at how Drupal parses and indexes content and how you can hook into the indexer.

Note

Drupal understands complicated search queries containing Boolean AND/OR operators, exact phrases, or even negative words. An example of all these in action is as follows: Beatles OR "John Lennon" –insect. In this example, we are searching for all occurrences ...

Get Pro Drupal 7 Development, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.