Note that Elasticsearch aggregation behaves somewhat unintuitively: to get
correct amount of sums you need to set a large enough size parameter to the terms aggregation:
"terms": {
"field": "id"
"size": 10000
},
In Elasticsearch 1.1.0 you are able to set size to 0 to get all the results
On Wednesday, March 5, 2014 3:27:23 PM UTC+2, Binh Ly wrote:
Assuming count is a numeric field and id is a single value:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.