# The number of queries exceeds 10000

**URL:** https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660
**Category:** Elasticsearch
**Created:** [December 9, 2024, 3:11am UTC](https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660 "2024-12-09T03:11:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wender](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@wender](https://discuss.elastic.co/u/wender)
#### Post date: [December 9, 2024, 3:11am UTC](https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660/1 "2024-12-09T03:11:15Z")

</div>

Hi  
I have a question about search, how to query over 10000 item, I know some api about search after, scroll, from size, but I want to achieve the ability to select the page I want after querying 10000 items, like this

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2abcf0da24f1514bba3d7867139de4b61ec80111.png)  
and how is this function implemented in Kibane? Thank you to all the engineers for their replies

---

<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: [December 9, 2024, 7:26am UTC](https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660/2 "2024-12-09T07:26:13Z")

</div>

Welcome!

You can use:

- the [`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).
- the [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after) feature to do deep pagination.
- the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#scroll-search-results) if you want to extract a resultset to be consumed by another tool later. (Not recommended anymore)

---

<div class="post-metadata">

### Author: ![wender](https://avatars.discourse-cdn.com/v4/letter/w/f08c70/32.png) [@wender](https://discuss.elastic.co/u/wender)
#### Post date: [December 9, 2024, 8:54am UTC](https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660/3 "2024-12-09T08:54:00Z")

</div>

thank you very much 🙏 🙏, I have another question, How does kibana achieve custom page jump after querying 10,000 records? and Using [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after) can only perform operations on the previous and next pages(the version is 6.7.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: [December 9, 2024, 6:37pm UTC](https://discuss.elastic.co/t/the-number-of-queries-exceeds-10000/371660/4 "2024-12-09T18:37:33Z")

</div>

Where does Kibana do that?  
Upgrade your version please as a matter of urgency.  
This one does not contain all the fixes including security patches.
