# Search after| Same request return different results

**URL:** <https://discuss.elastic.co/t/search-after-same-request-return-different-results/355665>\
**Category:** Elasticsearch\
**Created:** [March 18, 2024, 10:56pm UTC](https://discuss.elastic.co/t/search-after-same-request-return-different-results/355665 "2024-03-18T22:56:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amladenovic](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@amladenovic](https://discuss.elastic.co/u/amladenovic)\
**Post date:** [March 18, 2024, 10:56pm UTC](https://discuss.elastic.co/t/search-after-same-request-return-different-results/355665/1 "2024-03-18T22:56:08Z")

</div>

Hello. I have 2 instances and index with 3 shards. For my deep search im using search after. Search after uses doc id of document as sort parameter, with the following options "\_source":false , stored\_fields":["_none_"] .

After performing deep search I don't always get the same result size (In dev console for total its says 600k results im getting 570k 580k 590k ...)  
Note: For doc id I set unique id (not using the default one by elastic)

Even with PIT I have the issue but its more precise then without. Based on documentation it should be the best solution. Do we have any diagram or explanation how ES stores a search data in this example.

But, If I use for sort a unique property from my document (for example productID) it returns for the same request always the same results size and all results ...

Note: I don't have issue on 1 instance, only for 2. Version 8.3.3

---

<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 15, 2024, 10:56pm UTC](https://discuss.elastic.co/t/search-after-same-request-return-different-results/355665/2 "2024-04-15T22:56:46Z")

</div>

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