Recommended modules
Facets
Site builders often look to solutions like Elasticsearch, OpenSearch, Apache Solr, etc. because they want to provide faceted searching. Drupal's Facets module integrates with Search API to provide faceted searching.
For more information, please see the Documentation [for] Facets 3.
JSON:API Search API or Search API Decoupled
If you are building a headless/decoupled Drupal site, then you should use the JSON:API Search API or Search API Decoupled module to allow client-side code to send search requests to Drupal, which passes along those requests to Elasticsearch, and forwards the responses back to the client-side code.
Access to an Elasticsearch server allows you to both make queries (search/read) and create/update/delete documents on that server, and often means you can delete/create indexes as well. This means that it's a security risk for your client-side code to talk directly to Elasticsearch!
See the Elasticsearch self-hosting concepts section on Security for more information.
Please see either the Documentation for JSON:API Search API 8.x or the Documentation for Search API Decoupled 1.x for more information.
Geofield and Search API Location
The Geofield module allows you to store geographic data (points, lines, polygons, etc.) inside Drupal content fields. For example, a manufacturer could use Geofield to attach the geographic location of each store that sells their product to that store's page. Please see the Geofield module documentation for more information.
The Search API Location module makes it possible to do location-based searching. To continue the example above, the retailer could use Search API Location to let a user search for stores within a certain distance of them.
Search API Autocomplete
The Search API Autocomplete module allows your site to show a list of suggested searches as the user types their search query. Elasticsearch's documentation refers to feature as Search-as-you-type.
Please see the Documentation for Search API Autocomplete 8.x for more information.
Search API Spellcheck
The Search API Spellcheck module lets you offer spell-checked suggestions for variants of a search query. Elasticsearch's documentation refers to this feature as Suggesters; but it's often colloquially known as Did You Mean (DYM) functionality, because of how Google presents it. Elasticsearch Connector detects if Search API Autocomplete is installed and automatically integrates with it.
Continue to Set up a Search API Server with an Elasticsearch backend
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