Browse Source

Document `must_not` context and scoring (#22532)

Document that `must_not` uses filter context and returns a score of `0`.
Jake 8 years ago
parent
commit
d7cc6e28e7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/reference/query-dsl/bool-query.asciidoc

+ 3 - 1
docs/reference/query-dsl/bool-query.asciidoc

@@ -25,7 +25,9 @@ be set using the
 parameter.
 
 |`must_not` |The clause (query) must not appear in the matching
-documents.
+documents.  Clauses are executed in <<query-filter-context,filter context>> meaning
+that scoring is ignored and clauses are considered for caching. Because scoring is
+ignored, a score of `0` for all documents is returned.
 |=======================================================================
 
 [IMPORTANT]