# Pulling more than 10000 records from elasticsearch query

**URL:** https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000
**Category:** Elasticsearch
**Created:** [May 14, 2019, 12:23pm UTC](https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000 "2019-05-14T12:23:10Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 14, 2019, 3:16pm UTC](https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000/2 "2019-05-14T15:16:51Z")

</div>

You can use [`size` and `from` parameters](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html) to display by default up to 10000 records to your users. If you want to change this limit, you can change `index.max_result_window` setting but be aware of the consequences (ie memory).  
You can use the [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html) feature to do deep pagination.  
You can use 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.

---

_[View the full topic](https://discuss.elastic.co/t/pulling-more-than-10000-records-from-elasticsearch-query/181000)._
