# Elasticsearch Report Download of size more than 10000 using aggregation

**URL:** <https://discuss.elastic.co/t/elasticsearch-report-download-of-size-more-than-10000-using-aggregation/321927>\
**Category:** Elasticsearch\
**Created:** [December 23, 2022, 2:56pm UTC](https://discuss.elastic.co/t/elasticsearch-report-download-of-size-more-than-10000-using-aggregation/321927 "2022-12-23T14:56:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jeeva042](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jeeva042](https://discuss.elastic.co/u/jeeva042)\
**Post date:** [December 23, 2022, 3:47pm UTC](https://discuss.elastic.co/t/elasticsearch-report-download-of-size-more-than-10000-using-aggregation/321927/2 "2022-12-23T15:47:13Z")

</div>

Hello @PRASHANT_MEHTA,  
Well if you dont want to use the index.max\_result\_window option, you may have to try out with [Search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after) or [scroll search results](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results)

- the [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html) feature to do deep pagination.
- the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html) if you want to extract a resultset to be consumed by another tool later.

Links:  
[Records more than 10,000 with pagination - Elastic Stack / Elasticsearch - Discuss the Elastic Stack](https://discuss.elastic.co/t/records-more-than-10-000-with-pagination/249398/3)

[Scroll search results](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results)

[Search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after)

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-report-download-of-size-more-than-10000-using-aggregation/321927)._
