Joey Yi Zhao
Joey Yi Zhao

Reputation: 42454

How does elasticsearch sort the document with the same score?

I am using Elasticsearch6.8 and I get a list of document in the response. Some of the document have the same score but they appear on the same order in the response list consistently. I wonder what the algorithm ES uses to sort the document with the same score?

Upvotes: 3

Views: 2766

Answers (1)

Val
Val

Reputation: 217274

ES uses the index order when there is a tie when sorting on score.

The index order is defined by the _doc field.

Upvotes: 4

Related Questions