Default Sorting Criteria after custom criteria

Hi,
If I have these two sorting criteria:

"_score": "desc"
"date": "desc"

And the query result consists of two documents with same date and same score,
What's the third defult criteria?

Thank you,
Manuel

Hi @MrIacono

I suspect it's the document indexing order.

Allows you to add one or more sorts on specific fields. Each sort can be reversed as well. The sort is defined on a per field level, with special field name for _score to sort by score, and _doc to sort by index order.

Thank you!
Can I just ask the reference of the paragraph you reported?

Of course, doc is here.

1 Like

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