[DOCS] Document `minimum_should_match` defaults for `bool` query (#48865)
Adds documentation for the `minimum_should_match` parameter to the `bool` query docs. Includes docs for the default values: - `1` if the `bool` query includes at least one `should` clause and no `must` or `filter` clauses - `0` otherwise
This commit is contained in:
parent
e3c959b7f1
commit
42f902977d
|
@ -60,6 +60,19 @@ POST _search
|
|||
}
|
||||
--------------------------------------------------
|
||||
|
||||
[[bool-min-should-match]]
|
||||
==== Using `minimum_should_match`
|
||||
|
||||
You can use the `minimum_should_match` parameter to specify the number or
|
||||
percentage of `should` clauses returned documents _must_ match.
|
||||
|
||||
If the `bool` query includes at least one `should` clause and no `must` or
|
||||
`filter` clauses, the default value is `1`.
|
||||
Otherwise, the default value is `0`.
|
||||
|
||||
For other valid values, see the
|
||||
<<query-dsl-minimum-should-match, `minimum_should_match` parameter>>.
|
||||
|
||||
[[score-bool-filter]]
|
||||
==== Scoring with `bool.filter`
|
||||
|
||||
|
|
Loading…
Reference in New Issue