07-30-2023, 03:01 PM
I have the following query:
{
"sort": [
{"actual_rank" : "desc"}
],
"query": {
"multi_match" : {
"query" : term,
"fields" : [ "title^3" , "category^5" , "entities.name^5"]
}
}
}
The problem with this query is that the sorting by rank makes the specified fields boosting pretty irrelevant(a best ranked item in which the term doesn't appear in the specified fields will be higher placed than a worst ranked item in which the term appears).
I'd like to decrease the importance of the sorting to get better results.
{
"sort": [
{"actual_rank" : "desc"}
],
"query": {
"multi_match" : {
"query" : term,
"fields" : [ "title^3" , "category^5" , "entities.name^5"]
}
}
}
The problem with this query is that the sorting by rank makes the specified fields boosting pretty irrelevant(a best ranked item in which the term doesn't appear in the specified fields will be higher placed than a worst ranked item in which the term appears).
I'd like to decrease the importance of the sorting to get better results.