I have an aggregation that sums a field and buckets the field by another field.
I understand from Elastic 2.3 release changes that the search_type=count is deprecated. I am running Elastic 2.2 and when I remove the search_type=count and add a ""size":0" clause to the body, I get my aggregation counts as before.
However, with the size 0 clause I only see the first 10 buckets. How to do I get all the buckets of the aggregation and the counts?