Skip to content

Commit 66f3129

Browse files
swekajclintongormley
authored andcommitted
Document must_not context and scoring (#22532)
Document that `must_not` uses filter context and returns a score of `0`.
1 parent 5e38736 commit 66f3129

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/reference/query-dsl/bool-query.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ be set using the
2525
parameter.
2626

2727
|`must_not` |The clause (query) must not appear in the matching
28-
documents.
28+
documents. Clauses are executed in <<query-filter-context,filter context>> meaning
29+
that scoring is ignored and clauses are considered for caching. Because scoring is
30+
ignored, a score of `0` for all documents is returned.
2931
|=======================================================================
3032

3133
[IMPORTANT]

0 commit comments

Comments
 (0)