How to access max_score from function score logic?


(Dhiwakar Kusuma) #1

Is there a way to access max_score ... I'm trying to do something like below.

GET my_index/_search
{
"query": {
"function_score": {
.....
}
},
"script_score": {
"script": {
"lang": "expression",
"source": "_score / max_score * 20"
}
}
}
}
}


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.