Add support for suggestions before search
Invenio-Records_rest already provides this functionality [1]
From the ES side:
- Completion suggesters require to assign manually the keywords that the
suggest
query would match. - An alternative way is to implement an n-gram analyzer and then query with the standard one. Adding some fuzzyness or wildcard to it would improve its performance.
- Term suggesters are a good alternative but more computing intense.
- Phrase suggesters can be used to build a "did you mean" functionality.
[1] Suggesters: https://invenio-records-rest.readthedocs.io/en/latest/usage.html#suggesters