How to access max_score from function score logic?

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"
}
}
}
}
}

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