# Retrieving more than 10K documents

**URL:** <https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612>\
**Category:** Elasticsearch\
**Created:** [June 5, 2018, 12:17pm UTC](https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612 "2018-06-05T12:17:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [June 5, 2018, 12:17pm UTC](https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612/1 "2018-06-05T12:17:49Z")

</div>

I'm using ElasticSearch to generate reports, such as a data warehouse, unfortunately the default configuration of `index.max_result_window` dont allow more than 10K documents, indeed this is necessary for performance.

How is possible return all documents and keep the value of aggregations concise?

_Using: Elasticsearch 6.2.3_

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 5, 2018, 12:28pm UTC](https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612/2 "2018-06-05T12:28:51Z")

</div>

The scroll API is meant for that.

---

<div class="post-metadata">

**Author:** ![TomTom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomtom/32/3676_2.png) [@TomTom](https://discuss.elastic.co/u/TomTom)\
**Post date:** [June 5, 2018, 1:48pm UTC](https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612/3 "2018-06-05T13:48:27Z")

</div>

Thanks @dadoonet, the scroll worked quickly and is easy to use.

---

<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:** [July 3, 2018, 1:48pm UTC](https://discuss.elastic.co/t/retrieving-more-than-10k-documents/134612/4 "2018-07-03T13:48:40Z")

</div>

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