# How to query more then 10k items without using the helpers.scan?

**URL:** <https://discuss.elastic.co/t/how-to-query-more-then-10k-items-without-using-the-helpers-scan/184287>\
**Category:** Elasticsearch\
**Created:** [June 5, 2019, 6:48am UTC](https://discuss.elastic.co/t/how-to-query-more-then-10k-items-without-using-the-helpers-scan/184287 "2019-06-05T06:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zarka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zarka/32/43361_2.png) [@zarka](https://discuss.elastic.co/u/zarka)\
**Post date:** [June 5, 2019, 6:48am UTC](https://discuss.elastic.co/t/how-to-query-more-then-10k-items-without-using-the-helpers-scan/184287/1 "2019-06-05T06:48:09Z")

</div>

Hello all, i'm sure these topic was discussed in the past but i still didn't find the answer.  
How do i query more then 10k fields without using the helpers.scan?  
The reason i want to use the 'es.search' method and not the 'helpers.scan' is because the helpers.scan is replying a 'generator' data struck and it is taking a lot of time to generate it to dict.  
(in python)  
If anyone had the same dilemma i will be happy to know how he solved these issue.  
Thanks!

---

<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 3, 2019, 6:48am UTC](https://discuss.elastic.co/t/how-to-query-more-then-10k-items-without-using-the-helpers-scan/184287/2 "2019-07-03T06:48:12Z")

</div>

Closed on July 3, 2019, 6:48am UTC

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