# Empty buckets in composite aggregation

**URL:** <https://discuss.elastic.co/t/empty-buckets-in-composite-aggregation/357784>\
**Category:** Elasticsearch\
**Created:** [April 19, 2024, 11:25am UTC](https://discuss.elastic.co/t/empty-buckets-in-composite-aggregation/357784 "2024-04-19T11:25:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehmet\_Ali\_Candemiro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehmet_ali_candemiro/32/123579_2.png) [@Mehmet\_Ali\_Candemiro](https://discuss.elastic.co/u/Mehmet_Ali_Candemiro)\
**Post date:** [April 19, 2024, 11:25am UTC](https://discuss.elastic.co/t/empty-buckets-in-composite-aggregation/357784/1 "2024-04-19T11:25:44Z")

</div>

I use composite aggregation, some buckets are empty , can i break for loop if bucket is empty . My data set is big, I don't want aggregate the empty buckets. I change the question a little bit, can I get only bucket they have values?
