# Elasticsearch Scroll Using Python

**URL:** <https://discuss.elastic.co/t/elasticsearch-scroll-using-python/94442>\
**Category:** Elasticsearch\
**Created:** [July 25, 2017, 8:22am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-using-python/94442 "2017-07-25T08:22:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cehpanku](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cehpanku/32/8823_2.png) [@cehpanku](https://discuss.elastic.co/u/cehpanku)\
**Post date:** [July 25, 2017, 8:22am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-using-python/94442/1 "2017-07-25T08:22:27Z")

</div>

Dear all,

I want to scroll through large elasticsearch index { more than 10000 documents } through python elasticsearch client, Is there any way to scroll through elasticsearch so that i can perform some operations on documents and create a new modified index.

Regards  
Pankaj

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [July 25, 2017, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-using-python/94442/2 "2017-07-25T10:23:38Z")

</div>

Hi @cehpanku,

you can use the [scan helper](http://elasticsearch-py.readthedocs.io/en/master/helpers.html#scan) for that.

Daniel

---

<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:** [August 22, 2017, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-using-python/94442/3 "2017-08-22T10:23:54Z")

</div>

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