When I execute the query below, how do I download aggs results?
And is there a method to put aggs results in the hits part as a result of json?
POST http://myElastic.com/test/e1,e2,e3/_search { "aggs":{ "dedup" : { "terms":{ "field": "id" }, "aggs":{ "dedup_docs":{ "top_hits":{ "size":1 } } } } } }
source share