Installation
It is recommended to install the module using composer to load all necessary dependencies easier. Run composer require drupal/search_api_decoupled in the folder where your project's composer.json file is located. Additionally if needed add suggested modules like "Facets" (composer require drupal/facets) for adding faceted searches, "Search API Autocomplete" (composer require drupal/search_api_autocomplete) for autocomplete solutions and "Search API Exclude" (composer require drupal/drupal/search_api_exclude) to control what content items should be excluded from search results.
After requiring the packages and all their dependencies, now the decision about search backend has to be made. There are multiple options:
- Database backend shipped with
search_apimodule as submodulesearch_api_db. This option is the simpliest, doesn't require any server side changes. But it is also limited and has only basic search features. - Solr
- Elastic
- Opensearch
- Azure
- Many others. Please check the link above for more details.
Each backend is provided by its own module, so this module should also be required by composer and installed as normal Drupal module. After this install the module as usual through admin UI in "Extenstions" section or with Drush (you need to install it separately) command drush en search_api_decoupled.
Now search api should be configured .
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.