How to paging aggregation result in ElasticSearch?
问题 When I execute the query below, how to paging the aggs results? And is there a method to put the aggs results to hits part in json result? POST http://myElastic.com/test/e1,e2,e3/_search { "aggs":{ "dedup" : { "terms":{ "field": "id" }, "aggs":{ "dedup_docs":{ "top_hits":{ "size":1 } } } } } } 回答1: Based on the below issue on the Elasticsearch github site I don't think what you are asking for is possible: https://github.com/elastic/elasticsearch/issues/4915 Seems like a common request however