What's the denominator for ElasticSearch scores?
问题 I have a search which has multiple criterion. Each criterion (grouped by should ) has a different weighted score. ElasticSearch returns a list of results; each with a score - which seems an arbitrary score to me. This is because I can't find a denominator for that score. My question is - how can I represent each score as a ratio? Dividing each score by max_score would not work since it'll show the best match as a 100% match with the search criteria. 回答1: The _score calculation depends on the