# CompositeAgg Histograms - fill empty interval gaps like normal histogramAggregation

**URL:** <https://discuss.elastic.co/t/compositeagg-histograms-fill-empty-interval-gaps-like-normal-histogramaggregation/180296>\
**Category:** Elasticsearch\
**Created:** [May 9, 2019, 7:02am UTC](https://discuss.elastic.co/t/compositeagg-histograms-fill-empty-interval-gaps-like-normal-histogramaggregation/180296 "2019-05-09T07:02:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stogo](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@stogo](https://discuss.elastic.co/u/stogo)\
**Post date:** [May 9, 2019, 7:02am UTC](https://discuss.elastic.co/t/compositeagg-histograms-fill-empty-interval-gaps-like-normal-histogramaggregation/180296/1 "2019-05-09T07:02:20Z")

</div>

Hi,

I think it's a bug that CompositeAggregation histograms does not have a way to "fill empty interval buckets". It is the default behaviour in normal Histogram Aggregations.

The documentation says in: [Histogram Aggregation | Elasticsearch Guide [6.7] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/search-aggregations-bucket-histogram-aggregation.html#_minimum_document_count)

> By default the response will fill gaps in the histogram with empty buckets.

This is more important with DateHistograms because supporting Elasticsearch time interval calculation at client side is not so trivial.

Tried to create github issue but it was closed as "question". So here I am.

-Tuomas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 6, 2019, 7:02am UTC](https://discuss.elastic.co/t/compositeagg-histograms-fill-empty-interval-gaps-like-normal-histogramaggregation/180296/2 "2019-06-06T07:02:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
