Use a collector with buckets to simulate the aggregation of ES.