mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-28 10:58:30 +00:00
Rewrite description of bool
's should
(#24342)
Docs: rewrite description of `bool`'s `should` Rewrites the description of the `bool` query's `should` clauses so it is (hopefully) more clear what the defaults for `minimum_should_match` are. There is still an `[IMPORTANT]` section about `minimum_should_match` in a filter context. I think it is worth keeping because it is, well, important. Closes #23831
This commit is contained in:
parent
7c3efb829b
commit
416feeb7f9
@ -17,12 +17,15 @@ contribute to the score.
|
|||||||
in <<query-filter-context,filter context>>, meaning that scoring is ignored
|
in <<query-filter-context,filter context>>, meaning that scoring is ignored
|
||||||
and clauses are considered for caching.
|
and clauses are considered for caching.
|
||||||
|
|
||||||
|`should` |The clause (query) should appear in the matching document. In
|
|`should` |The clause (query) should appear in the matching document. If the
|
||||||
a boolean query with no `must` or `filter` clauses, one or more `should` clauses
|
`bool` query is in a <<query-filter-context,query context>> and has a `must` or
|
||||||
must match a document. The minimum number of should clauses to match can
|
`filter` clause then a document will match the `bool` query even if none of the
|
||||||
be set using the
|
`should` queries match. In this case these clauses are only used to influence
|
||||||
<<query-dsl-minimum-should-match,`minimum_should_match`>>
|
the score. If the `bool` query is a <<query-filter-context,filter context>>
|
||||||
parameter.
|
or has neither `must` or `filter` then at least one of the `should` queries
|
||||||
|
must match a document for it to match the `bool` query. This behavior may be
|
||||||
|
explicitly controlled by settings the
|
||||||
|
<<query-dsl-minimum-should-match,`minimum_should_match`>> parameter.
|
||||||
|
|
||||||
|`must_not` |The clause (query) must not appear in the matching
|
|`must_not` |The clause (query) must not appear in the matching
|
||||||
documents. Clauses are executed in <<query-filter-context,filter context>> meaning
|
documents. Clauses are executed in <<query-filter-context,filter context>> meaning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user