# Limiting pagination?

**URL:** <https://discuss.elastic.co/t/limiting-pagination/19858>\
**Category:** Elasticsearch\
**Created:** [September 18, 2014, 8:46am UTC](https://discuss.elastic.co/t/limiting-pagination/19858 "2014-09-18T08:46:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maf/32/77965_2.png) [@maf](https://discuss.elastic.co/u/maf)\
**Post date:** [September 18, 2014, 8:46am UTC](https://discuss.elastic.co/t/limiting-pagination/19858/1 "2014-09-18T08:46:30Z")

</div>

Hello,

I wonder if it is possible to put a limit on the from parameter in  
pagination requests. For example refuse any paginating searches where the  
from is above X? This would be good to protect clusters which otherwise are  
easy to bring down.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [September 18, 2014, 8:48am UTC](https://discuss.elastic.co/t/limiting-pagination/19858/2 "2014-09-18T08:48:35Z")

</div>

No, but since you should never expose your clusters to end users directly  
you could always impose this limit on the software facade that connects  
between your application and the cluster

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)

On Thu, Sep 18, 2014 at 11:46 AM, Martin Forssen [maf@recordedfuture.com](mailto:maf@recordedfuture.com)  
wrote:

> Hello,
> 
> I wonder if it is possible to put a limit on the from parameter in  
> pagination requests. For example refuse any paginating searches where the  
> from is above X? This would be good to protect clusters which otherwise are  
> easy to bring down.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/206b9f66-86c6-48c3-845f-cd07e9f7089a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zv4Np0XLx8wNPn\_1am3rtt%2BkAJZh2CiP2j6xw-gOqMzqQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zv4Np0XLx8wNPn_1am3rtt%2BkAJZh2CiP2j6xw-gOqMzqQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:01am UTC](https://discuss.elastic.co/t/limiting-pagination/19858/3 "2017-07-06T01:01:23Z")

</div>


