Drop empty buckets

If you use a histogram aggregation instead of a terms aggregation then there is a an option to drop empty buckets

1 Like