# Pagination over aggregation result

**URL:** <https://discuss.elastic.co/t/pagination-over-aggregation-result/177935>\
**Category:** Elasticsearch\
**Created:** [April 23, 2019, 5:30am UTC](https://discuss.elastic.co/t/pagination-over-aggregation-result/177935 "2019-04-23T05:30:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamshi\_Sai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vamshi_sai/32/42723_2.png) [@Vamshi\_Sai](https://discuss.elastic.co/u/Vamshi_Sai)\
**Post date:** [April 23, 2019, 5:30am UTC](https://discuss.elastic.co/t/pagination-over-aggregation-result/177935/1 "2019-04-23T05:30:19Z")

</div>

Is there a pagination support over aggregated result. For example if the terms-aggregation gives all the results in some sorted order and I need to get only 50 of them at a time as the user is issuing more requests. This can be done on the backend, but would like to understand if it is supported within Elastic Search ? Thanks.

---

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [April 23, 2019, 5:46am UTC](https://discuss.elastic.co/t/pagination-over-aggregation-result/177935/2 "2019-04-23T05:46:24Z")

</div>

The composite aggregation allows you to do that:

[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html)

---

<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 21, 2019, 5:46am UTC](https://discuss.elastic.co/t/pagination-over-aggregation-result/177935/3 "2019-05-21T05:46:24Z")

</div>

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