Installation

Last updated on
31 May 2023

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:

  1. Database backend shipped with search_api module as submodule search_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.
  2. Solr
  3. Elastic
  4. Opensearch
  5. Azure
  6. 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

Page status: No known problems

You can: