[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:
James Rodewig 2019-12-04 12:44:13 -05:00
parent e3c959b7f1
commit 42f902977d
1 changed files with 13 additions and 0 deletions

View File

@ -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`