# Default sort for same score documents

**URL:** <https://discuss.elastic.co/t/default-sort-for-same-score-documents/151076>\
**Category:** Elasticsearch\
**Created:** [October 4, 2018, 4:09pm UTC](https://discuss.elastic.co/t/default-sort-for-same-score-documents/151076 "2018-10-04T16:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvelichkovich](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vvelichkovich](https://discuss.elastic.co/u/vvelichkovich)\
**Post date:** [October 4, 2018, 4:09pm UTC](https://discuss.elastic.co/t/default-sort-for-same-score-documents/151076/1 "2018-10-04T16:09:26Z")

</div>

If I do search and all documents have score of 1, what is the default order elasticsearch use to give me results back?  
I am looking at the case where we re-indexed data and just doing GET index/\_search in those two indices is not giving me same result of 10 documents that come back.

So, I wonder, if there is something special that I need to know with re-indexing that will help ensuring that my results from two indices will be the same.

I can tell that neither timestamp in source nor \_id were used.

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [October 12, 2018, 11:45am UTC](https://discuss.elastic.co/t/default-sort-for-same-score-documents/151076/2 "2018-10-12T11:45:57Z")

</div>

the default is undefined. We use the internal document ID that is nothing you can control and it can be different across shards. if you need one use a primary sort on score and secondary on whatever you need it to be.

---

<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:** [November 9, 2018, 11:45am UTC](https://discuss.elastic.co/t/default-sort-for-same-score-documents/151076/3 "2018-11-09T11:45:59Z")

</div>

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