浏览代码

Correct docs for multi_match scoring (#91430)

The documentation claimed that for the most_fields type, the score is equal to
the sum of all matches divided by the number of matches. This is not correct,
we actually don't divide by the number of matches.

This line in the documentation was added several years ago as part of a large
PR, and was likely just a mistake.
Julie Tibshirani 2 年之前
父节点
当前提交
509b636d25
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      docs/reference/query-dsl/multi-match-query.asciidoc

+ 1 - 2
docs/reference/query-dsl/multi-match-query.asciidoc

@@ -244,8 +244,7 @@ GET /_search
 }
 --------------------------------------------------
 
-The score from each `match` clause is added together, then divided by the
-number of `match` clauses.
+The score from each `match` clause is added together, just like a `bool` query.
 
 Also, accepts `analyzer`, `boost`, `operator`, `minimum_should_match`,
 `fuzziness`, `lenient`, `prefix_length`, `max_expansions`, `fuzzy_rewrite`, and `zero_terms_query`.