how do i find maxscore in an query in elasticsearch?

Unfortunately there is no way to post process the score in this way in elastic. The max score is just the highest score after all scores have been calculated. This values is not available in the postprocess possibilities that exists in Elasticsearch.

See: https://discuss.elastic.co/t/using-max-score-inside-script-function/156871/3

I think you have to write your own program processing the result and returning the difference between scores.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top