Elasticsearch Connector Autocomplete
This module enhances autocompletion for Drupal sites using Elasticsearch by configuring indexes to analyze text with ngrams. This allows for more responsive search results that provide suggestions as users type, even before a full word is entered.
This module adds the ability to configure the elasticsearch index and fields to index ngrams, which improves autocompletion results for search_api, elasticsearch_connector and search_api_autocomplete module.
When configuring autocomplete with search_api module and the elasticsearch_connector module, auto completion is a little clunky.
Autocomplete works out of the box, but since words are indexed essentially has whole words, autocomplete retrieves no results until an entire word has been entered first. This is also the case for search, entire words need to be entered, not just parts of words.
This module adds a simple ngram analyzer to the elasticsearch index with configuration min gram and max gram values.
And it also supplies a Fulltext (ngram) data type that can be applied to fields when the indexes ngram analyzer is enabled.
To learn more about ngrams and analyzers in elasticsearch, read here: https://qbox.io/blog/an-introduction-to-ngrams-in-elasticsearch
Depends on
Dependencies of the latest stable release
- Elasticsearch Connector
- Search API
- system Drupal core >= 8.7.1
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 8.x-1.3 | Stable | 8–11 | Adds Drupal 10 compatibility, improves coding standards, and resolves integration issues with the elasticsearch_connector module. | May 16, 2025 |