# Fetching all the buckets using Composite Search

**URL:** <https://discuss.elastic.co/t/fetching-all-the-buckets-using-composite-search/240381>\
**Category:** Elasticsearch\
**Created:** [July 8, 2020, 3:30pm UTC](https://discuss.elastic.co/t/fetching-all-the-buckets-using-composite-search/240381 "2020-07-08T15:30:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitagarwal9156](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@ankitagarwal9156](https://discuss.elastic.co/u/ankitagarwal9156)\
**Post date:** [July 8, 2020, 3:30pm UTC](https://discuss.elastic.co/t/fetching-all-the-buckets-using-composite-search/240381/1 "2020-07-08T15:30:09Z")

</div>

Is there any way to fetch all the buckets (without pagination) using composite aggregation?  
Right now by default 10 buckets are returned.

---

<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:** [August 5, 2020, 3:44pm UTC](https://discuss.elastic.co/t/fetching-all-the-buckets-using-composite-search/240381/2 "2020-08-05T15:44:40Z")

</div>

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