ES Date Histogram Bucket max item count

I have timeSeries based data.

Im performing a date histogram aggregation with interval '1h' and sorting
the results by "_count". Is it possible to limit the item count in the
bucket so it would only return the 1st one, the item with the maximum count
and not bother about the other ?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit