# Same scroll id

**URL:** <https://discuss.elastic.co/t/same-scroll-id/50253>\
**Category:** Elasticsearch\
**Created:** [May 17, 2016, 7:10pm UTC](https://discuss.elastic.co/t/same-scroll-id/50253 "2016-05-17T19:10:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![QD\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qd_wang/32/8409_2.png) [@QD\_Wang](https://discuss.elastic.co/u/QD_Wang)\
**Post date:** [May 17, 2016, 7:10pm UTC](https://discuss.elastic.co/t/same-scroll-id/50253/1 "2016-05-17T19:10:00Z")

</div>

Hi There

I am running into a very strange issue, here is query

1. first query  
[http://localhost:9200/index/\_search?scroll=1m&size=10](http://localhost:9200/index/_search?scroll=1m&size=10)

2. next page  
[http://localhost:9200/\_search/scroll?scroll=1m&scroll\_id=](http://localhost:9200/_search/scroll?scroll=1m&scroll_id=)(Scroll ID from Above)

According to the documentation , i should get a new scroll id, but i keep getting the same scroll id, interestingly, the data coming back is indeed different for each request.

please advise

Thanks  
Alps

---

<div class="post-metadata">

**Author:** ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)\
**Post date:** [May 18, 2016, 5:19am UTC](https://discuss.elastic.co/t/same-scroll-id/50253/2 "2016-05-18T05:19:29Z")

</div>

In the case of a scrolling search, there is cluster-side state retained. It's very common for the scroll ID to remain the same on many sequential calls for the next group of results.

Nevertheless, you should always retrieve the value from the result, and use that value for the next call, because you never know when it's going to change.

---

<div class="post-metadata">

**Author:** ![QD\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/qd_wang/32/8409_2.png) [@QD\_Wang](https://discuss.elastic.co/u/QD_Wang)\
**Post date:** [May 18, 2016, 2:11pm UTC](https://discuss.elastic.co/t/same-scroll-id/50253/3 "2016-05-18T14:11:19Z")

</div>

Thank you for your reply

---

<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:50pm UTC](https://discuss.elastic.co/t/same-scroll-id/50253/4 "2017-07-05T22:50:37Z")

</div>


