ElasticSearch - return the complete value of a facet for a query
问题 I've recently started using ElasticSearch. I try to complete some use cases. I have a problem for one of them. I have indexed some users with their full name (e.g. "Jean-Paul Gautier", "Jean De La Fontaine"). I try to get all the full names responding to some query. For example, I want the 100 most frequent full names beggining by "J" { "query": { "query_string" : { "query": "full_name:J*" } } }, "facets":{ "name":{ "terms":{ "field": "full_name", "size":100 } } } } The result I get is all