Skip to content

Commit fb77a73

Browse files
clarify that exactly one of minimum_should_match_field or script must be provided in terms_set query (#10109)
* clarify that exactly one of minimum_should_match_field or script must be provided in terms_set query Signed-off-by: Akshansh <92106389+akshansh-modi@users.noreply.github.com> Signed-off-by: apple <akshanshmodi2002@gmail.com> * Revert "clarify that exactly one of minimum_should_match_field or script must be provided in terms_set query" This reverts commit 7081677. revert note added Signed-off-by: apple <akshanshmodi2002@gmail.com> * clarify that exactly one of minimum_should_match_field or script must be provided in terms_set query Signed-off-by: apple <akshanshmodi2002@gmail.com> * spelling fix Signed-off-by: apple <akshanshmodi2002@gmail.com> --------- Signed-off-by: Akshansh <92106389+akshansh-modi@users.noreply.github.com> Signed-off-by: apple <akshanshmodi2002@gmail.com>
1 parent 8b2cb7e commit fb77a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_query-dsl/term/terms-set.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,6 @@ The `<field>` accepts the following parameters. All parameters except `terms` ar
165165
Parameter | Data type | Description
166166
:--- | :--- | :---
167167
`terms` | Array of strings | The array of terms to search for in the field specified in `<field>`. A document is returned in the results only if the required number of terms matches the document's field values exactly, with the correct spacing and capitalization.
168-
`minimum_should_match_field` | String | The name of the [numeric]({{site.url}}{{site.baseurl}}/field-types/supported-field-types/numeric/) field that specifies the number of matching terms required in order to return a document in the results.
169-
`minimum_should_match_script` | String | A script that returns the number of matching terms required in order to return a document in the results.
168+
`minimum_should_match_field` | String | The name of the [numeric]({{site.url}}{{site.baseurl}}/field-types/supported-field-types/numeric/) field that specifies the number of matching terms required in order to return a document in the results. You must specify either `minimum_should_match_field` or `minimum_should_match_script`, but not both.
169+
`minimum_should_match_script` | String | A script that returns the number of matching terms required in order to return a document in the results. You must specify either `minimum_should_match_field` or `minimum_should_match_script`, but not both.
170170
`boost` | Floating-point | A floating-point value that specifies the weight of this field toward the relevance score. Values above 1.0 increase the field’s relevance. Values between 0.0 and 1.0 decrease the field’s relevance. Default is 1.0.

0 commit comments

Comments
 (0)