I have such an index (ES 7.4):
"index": {
"sort.field": "date",
"sort.order": "desc",
And I query like this:
{
"sort": [
"_score",
{
"date": {
"order": "desc"
}
}
],
"track_total_hits": false,
"query": {
"multi_match": {
"query": "banana",
"fields": [
"title^2"
]
}
}
}
}
And important detail, title field is like this:
"title": {
"type": "text",
"analyzer": "custom_text",
"search_analyzer": "custom_search",
"similarity": "boolean"
},
so its using boolean similarity. As such max score for docs will be 2 (boost value). Even if we sort by score first, by date later, as the max score is known, early termination could be used here. But I cannot assert by looking at my experiments, as I have only a very small index to test.
So, is it being used?
thanks