# Scan and Scroll in Cluster

**URL:** <https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902>\
**Category:** Elasticsearch\
**Created:** [June 10, 2017, 12:56am UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902 "2017-06-10T00:56:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [June 10, 2017, 12:56am UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/1 "2017-06-10T00:56:21Z")

</div>

Hi All,  
Suppose if we have the cluster of three nodes, Can we use scroll\_id which we get from node\_1 and use the same on node\_2 to get the remaining result?

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [June 12, 2017, 7:23am UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/2 "2017-06-12T07:23:06Z")

</div>

No it's not possible from a single scroll which needs to run on the same nodes/replicas for all requests. Though you can use the `slice` scroll to parallelize the execution of your request:  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html#sliced-scroll](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html#sliced-scroll)

---

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [June 12, 2017, 3:53pm UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/3 "2017-06-12T15:53:05Z")

</div>

Hi @jimczi  
Thank you for your response. I think I was not clear in the question. What I meant was, I will do a scan and scroll on node\_1. I will take the scroll\_id which was returned in node\_1 and use that in node\_2?

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [June 12, 2017, 4:23pm UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/4 "2017-06-12T16:23:43Z")

</div>

Ok sorry I misread your initial question. Yes this is possible, as long as node\_2 belongs to the same cluster, you can send the next scroll query to any node, the scroll\_id contains all the required informations to redirect the request internally.

---

<div class="post-metadata">

**Author:** ![Pradeep\_Gowda](https://avatars.discourse-cdn.com/v4/letter/p/ebca7d/32.png) [@Pradeep\_Gowda](https://discuss.elastic.co/u/Pradeep_Gowda)\
**Post date:** [June 12, 2017, 4:44pm UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/5 "2017-06-12T16:44:10Z")

</div>

Awesome Thank you @jimczi

---

<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 10, 2017, 4:44pm UTC](https://discuss.elastic.co/t/scan-and-scroll-in-cluster/88902/6 "2017-07-10T16:44:16Z")

</div>

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