# How to keep the order of results constant for results with same score?

**URL:** <https://discuss.elastic.co/t/how-to-keep-the-order-of-results-constant-for-results-with-same-score/220993>\
**Category:** Elasticsearch\
**Created:** [February 26, 2020, 9:37am UTC](https://discuss.elastic.co/t/how-to-keep-the-order-of-results-constant-for-results-with-same-score/220993 "2020-02-26T09:37:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PriyaSmartShore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priyasmartshore/32/112138_2.png) [@PriyaSmartShore](https://discuss.elastic.co/u/PriyaSmartShore)\
**Post date:** [February 26, 2020, 9:37am UTC](https://discuss.elastic.co/t/how-to-keep-the-order-of-results-constant-for-results-with-same-score/220993/1 "2020-02-26T09:37:44Z")

</div>

I have query in ELasticSearch with results say outputting around 20 records almost all of them are having same score but everytime we hit the query , the order of the records are not same, it keeps on changing everytime. For example:- Ist output URL is : First Time the output is in order abc, pqr, def,xyz,ghj.(all values are having same score)  
The next time the query is hit output is def,xyz,abc,ghj that is some random order. I have used no SOrting field ,no boosting yet.and the query is on match\_phrase.  
Hereby question is How we can fix/constant the output of the returned results having same score. and I don't want to use any sorting on fields.

---

<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:** [March 25, 2020, 9:37am UTC](https://discuss.elastic.co/t/how-to-keep-the-order-of-results-constant-for-results-with-same-score/220993/2 "2020-03-25T09:37:45Z")

</div>

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