Using max_score inside script function

Hi @rjernst,

Thanks for the reply, max_score would be the highest individual "_score" of a set of documents, I think this value is returned from ElasticSearch on each query if I'm not mistaken.

What I basically want to do with max_score is to normalize values to use later with min_score and filter out document that let's say do not meet 50% of the maximum score.

Appreciate your time