You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The custom boost factor, custom script boost and the filters function query all do the same thing: They take a query and for each found document compute a new score based on the query score and some script, come custom boost factor or a combination of these two. However, the json format for these three functionalities is very different. This makes it hard to add new functions.
It would be nice to consolidate the three custom scores under the keyword function_score.
The new format should provide the same functionality as before that is: compute a new score with one function:
"function_score": {
"(query|filter)": {},
"boost": "boost for the whole query",
"function": {}
}
Unify custom scores
The custom boost factor, custom script boost and the filters function query all do the same thing: They take a query and for each found document compute a new score based on the query score and some script, come custom boost factor or a combination of these two. However, the json format for these three functionalities is very different. This makes it hard to add new functions.
It would be nice to consolidate the three custom scores under the keyword
function_score
.The new format should provide the same functionality as before that is: compute a new score with one function:
or allow to combine the newly computed scores
function
here can be eitheror
Changes
The custom boost factor query
would become
The custom script score
would become
and the custom filters score query
becomes:
The text was updated successfully, but these errors were encountered: