elastic_client icon indicating copy to clipboard operation
elastic_client copied to clipboard

How to implement queries with autocomplete?

Open sabetAI opened this issue 4 years ago • 1 comments

I'd like to implement autocomplete using one of the following strategies: https://medium.com/@mourjo_sen/a-detailed-comparison-between-autocompletion-strategies-in-elasticsearch-66cb9e9c62c4. How do I write these queries using your client?

sabetAI avatar Jan 26 '21 14:01 sabetAI

I think you can use Client.search (https://pub.dev/documentation/elastic_client/latest/elastic_client/Client/search.html) with passing the aggregation field as it was in the example.

isoos avatar Jan 26 '21 18:01 isoos