# Question about Scroll time

**URL:** <https://discuss.elastic.co/t/question-about-scroll-time/16943>\
**Category:** Elasticsearch\
**Created:** [April 11, 2014, 12:01am UTC](https://discuss.elastic.co/t/question-about-scroll-time/16943 "2014-04-11T00:01:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robbie](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Robbie](https://discuss.elastic.co/u/Robbie)\
**Post date:** [April 11, 2014, 12:01am UTC](https://discuss.elastic.co/t/question-about-scroll-time/16943/1 "2014-04-11T00:01:26Z")

</div>

Hi,  
Could anybody let me know the behavior of scroll when I am scanning  
through an index and the actions I take during this take more time than the  
scheduled scroll time?  
The documentation states that "the scroll parameter is a time value  
parameter (for example: scroll=5m), indicating for how long the nodes that  
participate in the search will maintain relevant resources in order to  
continue and support it"  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html)  
but does not say what the behavior will be after that time interval.

Are the subsequent search results which I get after the scroll time  
expires, not to be trusted?

Thanks,  
Praveen

--  
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/6ea47483-3719-449b-b5ed-07a7764fd309%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6ea47483-3719-449b-b5ed-07a7764fd309%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [April 21, 2014, 11:47am UTC](https://discuss.elastic.co/t/question-about-scroll-time/16943/2 "2014-04-21T11:47:32Z")

</div>

Hey,

if that specified time expires, file handles are closed and the state of  
time you used to dump out all your data is no longer preserved. While  
running scroll requests in the background, new lucene segments might be  
created or deleted, and a scroll requests keeps those deleted file handles  
open to ensure the data you requested is always the data, when the scroll  
request started. Makes sense?

--Alex

On Fri, Apr 11, 2014 at 2:01 AM, Robbie [pherur@ciphercloud.com](mailto:pherur@ciphercloud.com) wrote:

> Hi,  
> Could anybody let me know the behavior of scroll when I am scanning  
> through an index and the actions I take during this take more time than the  
> scheduled scroll time?  
> The documentation states that "the scroll parameter is a time value  
> parameter (for example: scroll=5m), indicating for how long the nodes that  
> participate in the search will maintain relevant resources in order to  
> continue and support it"
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html)  
> but does not say what the behavior will be after that time interval.
> 
> Are the subsequent search results which I get after the scroll time  
> expires, not to be trusted?
> 
> Thanks,  
> Praveen
> 
> --  
> 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/6ea47483-3719-449b-b5ed-07a7764fd309%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6ea47483-3719-449b-b5ed-07a7764fd309%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/6ea47483-3719-449b-b5ed-07a7764fd309%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6ea47483-3719-449b-b5ed-07a7764fd309%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/CAGCwEM-BrnJdbsPw9g3-a59e8Q84T7-90%3DSSkW-%3Ds1N5TBGrGg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-BrnJdbsPw9g3-a59e8Q84T7-90%3DSSkW-%3Ds1N5TBGrGg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [April 21, 2014, 10:16pm UTC](https://discuss.elastic.co/t/question-about-scroll-time/16943/3 "2014-04-21T22:16:48Z")

</div>

In addition to Alex, if the cleanup process has "expired" your search  
context due to timeout, you will get an error back the next time you scroll.

--  
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/fd9d450d-d20a-4643-be9e-2f55529cb953%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fd9d450d-d20a-4643-be9e-2f55529cb953%40googlegroups.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:34am UTC](https://discuss.elastic.co/t/question-about-scroll-time/16943/4 "2017-07-06T01:34:27Z")

</div>


