# I cant get results more than 10K in elasticsearch

**URL:** <https://discuss.elastic.co/t/i-cant-get-results-more-than-10k-in-elasticsearch/87077>\
**Category:** Elasticsearch\
**Created:** [May 25, 2017, 6:52am UTC](https://discuss.elastic.co/t/i-cant-get-results-more-than-10k-in-elasticsearch/87077 "2017-05-25T06:52:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Basinger](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@John\_Basinger](https://discuss.elastic.co/u/John_Basinger)\
**Post date:** [May 25, 2017, 6:52am UTC](https://discuss.elastic.co/t/i-cant-get-results-more-than-10k-in-elasticsearch/87077/1 "2017-05-25T06:52:03Z")

</div>

I have a query to get cities from country by country code.

While iam trying to get 9000 to 10000 sets it returns the result.

But when I try to get 10000 to 11000 or 10000 to 10001 it wont return anything. Stops at the point.

Please help me

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 25, 2017, 7:04am UTC](https://discuss.elastic.co/t/i-cant-get-results-more-than-10k-in-elasticsearch/87077/2 "2017-05-25T07:04:51Z")

</div>

If you want to extract data you should better use scroll API.

---

<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:** [June 22, 2017, 7:04am UTC](https://discuss.elastic.co/t/i-cant-get-results-more-than-10k-in-elasticsearch/87077/3 "2017-06-22T07:04:52Z")

</div>

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