Skip to content

Commit 509b636

Browse files
authored
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.
1 parent 42228af commit 509b636

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/reference/query-dsl/multi-match-query.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ GET /_search
244244
}
245245
--------------------------------------------------
246246

247-
The score from each `match` clause is added together, then divided by the
248-
number of `match` clauses.
247+
The score from each `match` clause is added together, just like a `bool` query.
249248

250249
Also, accepts `analyzer`, `boost`, `operator`, `minimum_should_match`,
251250
`fuzziness`, `lenient`, `prefix_length`, `max_expansions`, `fuzzy_rewrite`, and `zero_terms_query`.

0 commit comments

Comments
 (0)