# 10000+ results in aggregation

**URL:** <https://discuss.elastic.co/t/10000-results-in-aggregation/228154>\
**Category:** Elasticsearch\
**Created:** [April 15, 2020, 3:20pm UTC](https://discuss.elastic.co/t/10000-results-in-aggregation/228154 "2020-04-15T15:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [April 15, 2020, 3:20pm UTC](https://discuss.elastic.co/t/10000-results-in-aggregation/228154/1 "2020-04-15T15:20:05Z")

</div>

Hi All,

I am using a watcher to send data to an API, this works fine but my aggregation returns more than 10K buckets. Advised is to use composite aggregations but is that possible in an watcher? How do you paginate / loop over the result set?

Any help is really appreciated.

Regards,  
Paul.

---

<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:** [May 13, 2020, 3:20pm UTC](https://discuss.elastic.co/t/10000-results-in-aggregation/228154/2 "2020-05-13T15:20:10Z")

</div>

Closed on May 13, 2020, 3:20pm UTC

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