# Elasticsearch Search over 10000 documents

**URL:** https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413
**Category:** Elasticsearch
**Created:** [March 21, 2019, 11:21pm UTC](https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413 "2019-03-21T23:21:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)
#### Post date: [March 21, 2019, 11:21pm UTC](https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413/1 "2019-03-21T23:21:01Z")

</div>

I want to retrieve the document and display it page by page in the table (web).  
Page movement is possible directly. (ex. 1 page to 1001 page)

But if i have 100 data per page and want to display 101 pages right away, I can search 10000 documents using search\_after and find the next 100.  
I can not search 10001 ~ 10100 documents right now! So I need to search 10,000 documents that I do not need.

It works the same when looking for 20000 - 20100 documents.

Is there any way to find 10000 ~ 10100 documents right away?

---

<div class="post-metadata">

### Author: ![wangqinghuan](https://avatars.discourse-cdn.com/v4/letter/w/d26b3c/32.png) [@wangqinghuan](https://discuss.elastic.co/u/wangqinghuan)
#### Post date: [March 22, 2019, 3:05am UTC](https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413/2 "2019-03-22T03:05:10Z")

</div>

search\_after is the best choice when deep pagination is reached.

---

<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: [March 22, 2019, 6:45am UTC](https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413/3 "2019-03-22T06:45:28Z")

</div>

Agreed.

Note that you can also change the default limit of 10000 ( `index.max_result_window`) if needed but you need to understand the implications of such a change. Read [https://www.elastic.co/guide/en/elasticsearch/reference/6.6/index-modules.html#dynamic-index-settings](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/index-modules.html#dynamic-index-settings)

---

<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: [April 19, 2019, 6:54am UTC](https://discuss.elastic.co/t/elasticsearch-search-over-10000-documents/173413/4 "2019-04-19T06:54:23Z")

</div>

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