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,
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?
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.