Problem/Motivation
The Search API Spellcheck module makes it really easy to integrate a "did you mean?" or a suggestions block in the searchAPI view results. To do so, it looks over the search_api_spellcheck keyed results that a search backend returns to build it's content. It is currently compatible with Solr and Xapian backends, and could be with ElasticSearch too.
Using this module, we can power SearchAPI with ElasticSearch backend which is fully capable of suggestions and spellcheck via Suggester API. We might expect therefore this feature to be available when installing Search API Spellcheck module.
Steps to reproduce
- Install and configure Search API with ElasticSearch via this module
- Install Search API Spellcheck module
- Configure a fulltext search view and insert a "Did you mean" block in view header
Currently, no results are returned since search_api_spellcheck is unavailable.
Proposed resolution
Implement at least the basic Term Suggester API in this connector module to have a basic spellcheck functionnality at low cost for a Drupal user.
Remaining tasks
- write patch with functionnality
- write tests
- profit !
User interface changes
None
API changes
search_api_spellcheck options can be defined in the query, such as done by Search API Spellcheck module.
Data model changes
If search_api_spellcheck options are given to the query, you will expect a search_api_spellcheck in the results with the appropriate number of suggestions (at most) for each term.