Autocomplete Strategy

We are new to Elasticsearch's options for autocomplete functionalities.
Would apprciate if someone could advise us as to what is the best option for autocomplete such as Completion Suggesters, Search As You Type etc.
Thanks

I've been investigating this as well and these are things I noticed:

-Completion suggester searches and returns the actual field values that match. The only issue is that it only searches prefixes. So if you have multiple words like "yellow boat", it won't match if you type "boa".

-Search as you type searches and returns the entire record it matched on. This has several issues if you want just the values it matched on. If you have several records with the same title, then it will return all the records with the same titles. And you have to collapse them to skip duplicates.

Also, it has trouble with fields with multiple values. If it matches on that record, you don't know who value it matched on. You would have to iterate through highlighted matches to figure out the which value it matched on.

I would love a better solution if you are able to find one :slight_smile:

Hi
Not getting much response here so I am trying to find a consultant who can advise us.
Will let you know when I find something.

1 Like