# Sliced scroll returns duplicates

**URL:** <https://discuss.elastic.co/t/sliced-scroll-returns-duplicates/125053>\
**Category:** Elasticsearch\
**Created:** [March 21, 2018, 6:26pm UTC](https://discuss.elastic.co/t/sliced-scroll-returns-duplicates/125053 "2018-03-21T18:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![popina](https://avatars.discourse-cdn.com/v4/letter/p/9fc29f/32.png) [@popina](https://discuss.elastic.co/u/popina)\
**Post date:** [March 21, 2018, 6:26pm UTC](https://discuss.elastic.co/t/sliced-scroll-returns-duplicates/125053/1 "2018-03-21T18:26:12Z")

</div>

I have tried using sliced scroll detailed explained[Sliced](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html#sliced-scroll)  
with the following parameters:  
"sort": [  
{  
"\_uid": {  
"order": "desc",  
"unmapped\_type":"string"  
}  
}  
],  
"slice": {  
"field":"\_uid",  
"id": 1,  
"max": 2  
}

But whether I set "id" to 1 or to 2 I always get the same results. Any idea is why this happening?

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [March 23, 2018, 12:56pm UTC](https://discuss.elastic.co/t/sliced-scroll-returns-duplicates/125053/2 "2018-03-23T12:56:52Z")

</div>

Which versions of es are you using ? The `id`s for the slices starts at `0` so `2` should raised an exception. Are you able to reproduce with a subset of the documents, if so can you share a reproductible scenario here ?

---

<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:** [April 20, 2018, 12:56pm UTC](https://discuss.elastic.co/t/sliced-scroll-returns-duplicates/125053/3 "2018-04-20T12:56:57Z")

</div>

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