I have a website with a searchbar where users can search for documents.
Currently I am using a term suggester ( https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html ) to provide word suggestions to people as they type their queries.
This approach is 99% perfect, except that I want a greater edit distance / Levenstein distance for the suggestions.
It seems the maximum
max_edits is set to 2, which AFAIK means that if a user is typing 'subspace', they have to type 'subspa' before they get a matching suggestion.
I would prefer it is the matching suggestion was available after only 3-4 characters were typed eg.'subs'. It seems this is a limitation within term suggester.
Is there any way of circumventing this and increasing the edit distance, or switching the suggester to prefix functionality?
I am considering other methods such as prefix-filters ( https://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-prefix-filter.html ) . Is it possible to use prefix-filters and extract and return only the matching terms, not the whole matching documents?
Thanks for your help.