We are using the completion suggester for showing text suggestions and autocomplete functionality in our search implementation.
We recently migrated to the Elasticsearch v7.4 from v7.1. As a new field (search_as_you_type
) for autocomplete functionality was being introduced, we thought of using that instead of completion suggester.
The challenge I am facing is how to remove duplicates from the search results. While using a suggest query, I was using skip_duplicate = true
, but this obviously is not available in the search context with search_as_you_type
field.
Is there a way I can have unique suggestions by using the search_as_you_type
field with a multi_match
query?