Scroll API with slice gives duplicated entry

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 . 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.

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