# Scroll API with slice gives duplicated entry

**URL:** <https://discuss.elastic.co/t/scroll-api-with-slice-gives-duplicated-entry/145305>\
**Category:** Elasticsearch\
**Created:** [August 21, 2018, 7:06am UTC](https://discuss.elastic.co/t/scroll-api-with-slice-gives-duplicated-entry/145305 "2018-08-21T07:06:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishtiwari1993](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashishtiwari1993/32/135241_2.png) [@ashishtiwari1993](https://discuss.elastic.co/u/ashishtiwari1993)\
**Post date:** [August 21, 2018, 7:06am UTC](https://discuss.elastic.co/t/scroll-api-with-slice-gives-duplicated-entry/145305/1 "2018-08-21T07:06:46Z")

</div>

Hi Guys,

I have imported sample data of bank which specified here [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_exploring\_your\_data.html#\_loading\_the\_sample\_dataset](https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html#_loading_the_sample_dataset) . I have imported and using scroll api to fetch all data. I am having 5 shards and 1 replica and total 1k doc . I set 'MAX' option to 5 while using scroll API, which gives me duplicate entry with the doc count 1800 approx. I again reduced the number to 'MAX' 2 , It gives me the some duplication doc with the total number of 1300 approx. Then i set 'MAX' to 1, And its gave me perfect data with the count 1k. How its possible? I think same data should be return on first two iteration also.

---

<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:** [September 18, 2018, 7:06am UTC](https://discuss.elastic.co/t/scroll-api-with-slice-gives-duplicated-entry/145305/2 "2018-09-18T07:06:47Z")

</div>

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