# Deep pagination best practices?

**URL:** <https://discuss.elastic.co/t/deep-pagination-best-practices/60837>\
**Category:** Elasticsearch\
**Created:** [September 19, 2016, 7:09am UTC](https://discuss.elastic.co/t/deep-pagination-best-practices/60837 "2016-09-19T07:09:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nostef](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nostef](https://discuss.elastic.co/u/nostef)\
**Post date:** [September 19, 2016, 7:09am UTC](https://discuss.elastic.co/t/deep-pagination-best-practices/60837/1 "2016-09-19T07:09:38Z")

</div>

I just stumbled on the "Result window is too large, from + size must be less than or equal to: [10000] but was [10100]" issue and went through the docs.

Some people are saying that not even scan and scroll is a proper solution. So my question is: how should we handle deep pagination?

We're using filter, dis\_max, common.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [September 19, 2016, 8:20am UTC](https://discuss.elastic.co/t/deep-pagination-best-practices/60837/2 "2016-09-19T08:20:51Z")

</div>

According to

> **[Optimizing Elasticsearch Searches](https://www.elastic.co/blog/found-optimizing-elasticsearch-searches)**
>
> Elasticsearch can query, filter and aggregate in many ways. Often there are several ways to solve the same problem – and possibly with very different performance characteristics. This article will cover some important optimizations that can buy you a...

the recommended way indeed is to use scan and scroll.

May I ask what's the use case behind your question? Surely it's not your users clicking through all those result lists manually, or is it?

Isabel

---

<div class="post-metadata">

**Author:** ![nostef](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nostef](https://discuss.elastic.co/u/nostef)\
**Post date:** [September 19, 2016, 6:57pm UTC](https://discuss.elastic.co/t/deep-pagination-best-practices/60837/3 "2016-09-19T18:57:34Z")

</div>

Isabel,

Thanks for taking the time to answer.

It's for pagination for an API.

-R.

---

<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 5, 2017, 10:19pm UTC](https://discuss.elastic.co/t/deep-pagination-best-practices/60837/4 "2017-07-05T22:19:04Z")

</div>


