Elasticsearch autocomplete suggestion on array object

Hi @ysunil702

The "options" array in the return will represent the document that matches the search term. In your example you have only one document that can be suggested if the entry is "auto matics" or "auto parts".

If you want to have 2 items in the "options" array you would have to have another document with the "skillName" starting with the term "auto".

1 Like