London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Default sorting of documents with equal score

Vote:
 

Let's say that we search for "*" and get a resultset where every document has an equal score (relevance).

How does Find then sort the documents by default?

Is it by some id or some date?

#121444
May 11, 2015 13:43
Vote:
 

There is no default sorting. The order of the documents returned can be considered random as it cannot be defined (however it is a combination of index/shard order so consecutive requests will likely list the result the same way but it cannot be determined by specific property values).

/Henrik

#121821
May 18, 2015 15:02
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.