Many websites allow a user to search for text within the website using an internal search feature. Drupal core provides this with the Search module, which allows you to do a keyword search on content (text in nodes, taxonomy, etc.) and users (by name or email). In addition to having a search box to enter a keyword query into, you also have a results page, which lists the content or users that match, or a "no results" message if none match.
A search engine works by indexing your site so that it knows all of the words available and what content or users they are associated with. This needs to be updated periodically to remain accurate. Updating is most often achieved using a server utility called cron.
If Drupal core's search is not sufficient for your needs, there are many search engines you can integrate. The most popular choice by far in Drupal is to use Apache Solr in combination with the contributed Search API module. We recommend using Search API instead of the core Search module in most cases.
- Search for a keyword on the site.
- Change the relative importance of various factors to make some results appear higher than others.
- Configure how your content is indexed.
This is a stable core feature without significant changes since 8.0.
We are still filling out our Drupal 8 library and this page will be updated with new tutorials as they are created.
- Spotlight: Search Module (Drupal 7)
- This is a short overview of the main features and configuration settings for the Drupal core Search module.
- Configuring Cron and Search in Drupal 7 (Drupal 7)
- In addition to walking through the steps to configure Search module, this tutorial also goes into detail about setting up cron to keep your index up to date.
- Improve Drupal's Search with Apache Solr and Search API (Drupal 7)
- If you want to learn more about greater search functionality than core provides, this series walks through the entire process of adding Apache Solr to your site and making use of some of its many features. Search API is available for Drupal 8, and the majority of what is covered in this series is relevant for Drupal 8 users.