# Use Case : Records are more than 10000 with pagination

**URL:** <https://discuss.elastic.co/t/use-case-records-are-more-than-10000-with-pagination/296207>\
**Category:** Elasticsearch\
**Created:** [February 3, 2022, 2:42pm UTC](https://discuss.elastic.co/t/use-case-records-are-more-than-10000-with-pagination/296207 "2022-02-03T14:42:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapnil\_Javal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnil_javal/32/99344_2.png) [@Swapnil\_Javal](https://discuss.elastic.co/u/Swapnil_Javal)\
**Post date:** [February 3, 2022, 2:42pm UTC](https://discuss.elastic.co/t/use-case-records-are-more-than-10000-with-pagination/296207/1 "2022-02-03T14:42:07Z")

</div>

In My use case, We are implementing pagination with Elasticsearch. If the user clicks on any page number then he will get that set of records on UI.  
e.g. there is page size is 10 and we click on Page number 2 then 11 to 20 records will be populated. Same way if we select any other page then that 10 record set will be populated.

So, Users can Navigate to any page at any time.

Please suggest a solution to achieve this scenario.

![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5ab4cff46769889b854dae90868c97268ba7b7a.png)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 8, 2022, 2:03pm UTC](https://discuss.elastic.co/t/use-case-records-are-more-than-10000-with-pagination/296207/2 "2022-02-08T14:03:28Z")

</div>

Take a look at `search_after` [Paginate search results | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/paginate-search-results.html#search-after)

That said, I would in general refrain from offering such functionality on a public website... every spider will make use of that 🙂

---

<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:** [March 8, 2022, 2:03pm UTC](https://discuss.elastic.co/t/use-case-records-are-more-than-10000-with-pagination/296207/3 "2022-03-08T14:03:31Z")

</div>

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