i test in the elasticsearch7.9.3 using below query clause:
URL:
https://elastic:password@MACHINENAME:9500/indexname/_search
query post body:
{
"explain": true,
"from": 0,
"size": 130,
"query": {
"bool": {
"should": {
"bool": {
"should": [
{
"match_phrase_prefix": {
"TitleFieldAC": {
"query": "test",
"boost": 200
}
}
},
{
"match_phrase_prefix": {
"SummaryFieldAC": {
"query": "test",
"boost": 100
}
}
},
{
"multi_match": {
"query": "test",
"type": "cross_fields",
"operator": "or",
"auto_generate_synonyms_phrase_query": false,
"boost": 1
}
}
]
}
},
"minimum_should_match": "1"
}
},
"sort": [
{
"_score": "desc"
}
]
}
but i found that in elasticsearch6.8.0, sort result is not same as elasticsearch7.9.3's sort result using same query clause,
i want to know, whether the two elasticsearch versions sort by score is different or my usage have issue? thanks.