You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: _query-dsl/term/terms-set.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,6 @@ The `<field>` accepts the following parameters. All parameters except `terms` ar
165
165
Parameter | Data type | Description
166
166
:--- | :--- | :---
167
167
`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.
170
170
`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