# Get different total number of returning result every time when using scroll search

**URL:** <https://discuss.elastic.co/t/get-different-total-number-of-returning-result-every-time-when-using-scroll-search/176988>\
**Category:** Elasticsearch\
**Created:** [April 16, 2019, 3:18am UTC](https://discuss.elastic.co/t/get-different-total-number-of-returning-result-every-time-when-using-scroll-search/176988 "2019-04-16T03:18:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cherry\_Zhang](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@Cherry\_Zhang](https://discuss.elastic.co/u/Cherry_Zhang)\
**Post date:** [April 16, 2019, 3:18am UTC](https://discuss.elastic.co/t/get-different-total-number-of-returning-result-every-time-when-using-scroll-search/176988/1 "2019-04-16T03:18:14Z")

</div>

Hi,

I've used the scroll search to get all the records I want, but every time, I get different number of records, sometimes around 40000, sometimes around 20000, sometimes around 70000, I set the size of returning record is 100, and when the returning record is 0, and I decide that it is the last page and finish process the record. But every time, I get different number of total returning records, it's really odd, and I can't figure out where I do wrong, could you help?

---

<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:** [May 14, 2019, 3:18am UTC](https://discuss.elastic.co/t/get-different-total-number-of-returning-result-every-time-when-using-scroll-search/176988/2 "2019-05-14T03:18:27Z")

</div>

Closed on May 14, 2019, 3:18am UTC

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