Skip to content

Commit 66422e6

Browse files
committed
Add documentation for minimum_should_match (#113043)
(cherry picked from commit 28715b7)
1 parent 5021d06 commit 66422e6

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

docs/reference/query-dsl/terms-set-query.asciidoc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,22 @@ GET /job-candidates/_search
159159
`terms`::
160160
+
161161
--
162-
(Required, array of strings) Array of terms you wish to find in the provided
162+
(Required, array) Array of terms you wish to find in the provided
163163
`<field>`. To return a document, a required number of terms must exactly match
164164
the field values, including whitespace and capitalization.
165165

166-
The required number of matching terms is defined in the
167-
`minimum_should_match_field` or `minimum_should_match_script` parameter.
166+
The required number of matching terms is defined in the `minimum_should_match`,
167+
`minimum_should_match_field` or `minimum_should_match_script` parameters. Exactly
168+
one of these parameters must be provided.
169+
--
170+
171+
`minimum_should_match`::
172+
+
173+
--
174+
(Optional) Specification for the number of matching terms required to return
175+
a document.
176+
177+
For valid values, see <<query-dsl-minimum-should-match, `minimum_should_match` parameter>>.
168178
--
169179

170180
`minimum_should_match_field`::

0 commit comments

Comments
 (0)