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
Copy file name to clipboardExpand all lines: _query-dsl/term/exists.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -146,4 +146,8 @@ The response contains the matching document:
146
146
147
147
## Parameters
148
148
149
-
The query accepts the name of the field (`<field>`) as a top-level parameter.
149
+
The query accepts the name of the field (`<field>`) as a top-level parameter.
150
+
151
+
Parameter | Data type | Description
152
+
:--- | :--- | :---
153
+
`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.
Copy file name to clipboardExpand all lines: _query-dsl/term/fuzzy.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ GET _search
67
67
"fuzzy": {
68
68
"<field>": {
69
69
"value": "sample",
70
-
...
70
+
...
71
71
}
72
72
}
73
73
}
@@ -80,11 +80,12 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
80
80
Parameter | Data type | Description
81
81
:--- | :--- | :---
82
82
`value` | String | The term to search for in the field specified in `<field>`.
83
+
`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.
83
84
`fuzziness` | `AUTO`, `0`, or a positive integer | The number of character edits (insert, delete, substitute) needed to change one word to another when determining whether a term matched a value. For example, the distance between `wined` and `wind` is 1. The default, `AUTO`, chooses a value based on the length of each term and is a good choice for most use cases.
84
85
`max_expansions` | Positive integer | The maximum number of terms to which the query can expand. Fuzzy queries “expand to” a number of matching terms that are within the distance specified in `fuzziness`. Then OpenSearch tries to match those terms. Default is `50`.
85
86
`prefix_length` | Non-negative integer | The number of leading characters that are not considered in fuzziness. Default is `0`.
86
87
`rewrite` | String | Determines how OpenSearch rewrites and scores multi-term queries. Valid values are `constant_score`, `scoring_boolean`, `constant_score_boolean`, `top_terms_N`, `top_terms_boost_N`, and `top_terms_blended_freqs_N`. Default is `constant_score`.
87
-
`transpositions` | Boolean | Specifies whether to allow transpositions of two adjacent characters (`ab` to `ba`) as edits. Default is `true`.
88
+
`transpositions` | Boolean | Specifies whether to allow transpositions of two adjacent characters (`ab` to `ba`) as edits. Default is `true`.
88
89
89
90
Specifying a large value in `max_expansions` can lead to poor performance, especially if `prefix_length` is set to `0`, because of the large number of variations of the word that OpenSearch tries to match.
Copy file name to clipboardExpand all lines: _query-dsl/term/ids.md
+1
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,4 @@ The query accepts the following parameter.
32
32
Parameter | Data type | Description
33
33
:--- | :--- | :---
34
34
`values` | Array of strings | The document IDs to search for. Required.
35
+
`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.
Copy file name to clipboardExpand all lines: _query-dsl/term/prefix.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ GET _search
50
50
"prefix": {
51
51
"<field>": {
52
52
"value": "sample",
53
-
...
53
+
...
54
54
}
55
55
}
56
56
}
@@ -63,7 +63,7 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
63
63
Parameter | Data type | Description
64
64
:--- | :--- | :---
65
65
`value` | String | The term to search for in the field specified in `<field>`.
66
-
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
66
+
`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.
67
67
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
68
68
`rewrite` | String | Determines how OpenSearch rewrites and scores multi-term queries. Valid values are `constant_score`, `scoring_boolean`, `constant_score_boolean`, `top_terms_N`, `top_terms_boost_N`, and `top_terms_blended_freqs_N`. Default is `constant_score`.
Copy file name to clipboardExpand all lines: _query-dsl/term/range.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ OpenSearch populates missing date components with the following values:
90
90
-`SECOND_OF_MINUTE`: `59`
91
91
-`NANO_OF_SECOND`: `999_999_999`
92
92
93
-
If the year is missing, it is not populated.
93
+
If the year is missing, it is not populated.
94
94
95
95
For example, consider the following request that specifies only the year in the start date:
96
96
@@ -131,7 +131,7 @@ GET products/_search
131
131
```
132
132
{% include copy-curl.html %}
133
133
134
-
In the preceding example, `2019/01/01` is the anchor date (the starting point) for the date math. After the two pipe characters (`||`), you are specifying a mathematical expression relative to the anchor date. In this example, you are subtracting 1 year (`-1y`) and 1 day (`-1d`).
134
+
In the preceding example, `2019/01/01` is the anchor date (the starting point) for the date math. After the two pipe characters (`||`), you are specifying a mathematical expression relative to the anchor date. In this example, you are subtracting 1 year (`-1y`) and 1 day (`-1d`).
135
135
136
136
You can also round off dates by adding a forward slash to the date or time unit.
137
137
@@ -175,16 +175,16 @@ GET /products/_search
175
175
"query": {
176
176
"range": {
177
177
"created": {
178
-
"time_zone": "-04:00",
179
-
"gte": "2022-04-17T06:00:00"
178
+
"time_zone": "-04:00",
179
+
"gte": "2022-04-17T06:00:00"
180
180
}
181
181
}
182
182
}
183
183
}
184
184
```
185
185
{% include copy-curl.html %}
186
186
187
-
The `gte` parameter in the preceding query is converted to `2022-04-17T10:00:00 UTC`, which is the UTC equivalent of `2022-04-17T06:00:00-04:00`.
187
+
The `gte` parameter in the preceding query is converted to `2022-04-17T10:00:00 UTC`, which is the UTC equivalent of `2022-04-17T06:00:00-04:00`.
188
188
189
189
The `time_zone` parameter does not affect the `now` value because `now` always corresponds to the current system time in UTC.
190
190
{: .note}
@@ -200,7 +200,7 @@ GET _search
200
200
"range": {
201
201
"<field>": {
202
202
"gt": 10,
203
-
...
203
+
...
204
204
}
205
205
}
206
206
}
@@ -215,7 +215,7 @@ Parameter | Data type | Description
215
215
:--- | :--- | :---
216
216
`format` | String | A [format]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/date/#formats) for dates in this query. Default is the field's mapped format.
217
217
`relation` | String | Indicates how the range query matches values for [`range`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/range/) fields. Valid values are:<br> - `INTERSECTS` (default): Matches documents whose `range` field value intersects the range provided in the query. <br> - `CONTAINS`: Matches documents whose `range` field value contains the entire range provided in the query. <br> - `WITHIN`: Matches documents whose `range` field value is entirely within the range provided in the query.
218
-
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
218
+
`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.
219
219
`time_zone` | String | The time zone used to convert [`date`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/date/) values to UTC in the query. Valid values are ISO 8601 [UTC offsets](https://en.wikipedia.org/wiki/List_of_UTC_offsets) and [IANA time zone IDs](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For more information, see [Time zone](#time-zone).
220
220
221
221
If [`search.allow_expensive_queries`]({{site.url}}{{site.baseurl}}/query-dsl/index/#expensive-queries) is set to `false`, range queries on [`text`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/text/) and [`keyword`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/keyword/) fields are not run.
Copy file name to clipboardExpand all lines: _query-dsl/term/regexp.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ GET _search
43
43
"regexp": {
44
44
"<field>": {
45
45
"value": "[Ss]ample",
46
-
...
46
+
...
47
47
}
48
48
}
49
49
}
@@ -56,11 +56,11 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
56
56
Parameter | Data type | Description
57
57
:--- | :--- | :---
58
58
`value` | String | The regular expression used for matching terms in the field specified in `<field>`.
59
+
`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.
59
60
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the regular expression value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
`max_determinized_states` | Integer | Lucene converts a regular expression to an automaton with a number of determinized states. This parameter specifies the maximum number of automaton states the query requires. Use this parameter to prevent high resource consumption. To run complex regular expressions, you may need to increase the value of this parameter. Default is 10,000.
62
63
`rewrite` | String | Determines how OpenSearch rewrites and scores multi-term queries. Valid values are `constant_score`, `scoring_boolean`, `constant_score_boolean`, `top_terms_N`, `top_terms_boost_N`, and `top_terms_blended_freqs_N`. Default is `constant_score`.
63
64
64
65
If [`search.allow_expensive_queries`]({{site.url}}{{site.baseurl}}/query-dsl/index/#expensive-queries) is set to `false`, `regexp` queries are not run.
Copy file name to clipboardExpand all lines: _query-dsl/term/term.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ GET _search
82
82
"term": {
83
83
"<field>": {
84
84
"value": "sample",
85
-
...
85
+
...
86
86
}
87
87
}
88
88
}
@@ -95,5 +95,5 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
95
95
Parameter | Data type | Description
96
96
:--- | :--- | :---
97
97
`value` | String | The term to search for in the field specified in `<field>`. A document is returned in the results only if its field value exactly matches the term, with the correct spacing and capitalization.
98
-
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
99
-
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
98
+
`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.
99
+
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
Copy file name to clipboardExpand all lines: _query-dsl/term/terms-set.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ GET _search
153
153
"terms_set": {
154
154
"<field>": {
155
155
"terms": [ "term1", "term2" ],
156
-
...
156
+
...
157
157
}
158
158
}
159
159
}
@@ -167,4 +167,5 @@ Parameter | Data type | Description
167
167
:--- | :--- | :---
168
168
`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.
169
169
`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.
170
-
`minimum_should_match_script` | String | A script that returns the number of matching terms required in order to return a document in the results.
170
+
`minimum_should_match_script` | String | A script that returns the number of matching terms required in order to return a document in the results.
171
+
`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.
Copy file name to clipboardExpand all lines: _query-dsl/term/terms.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ The query accepts the following parameters. All parameters are optional.
39
39
Parameter | Data type | Description
40
40
:--- | :--- | :---
41
41
`<field>` | String | The field in which to search. A document is returned in the results only if its field value exactly matches at least one term, with the correct spacing and capitalization.
42
-
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
42
+
`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.
43
43
44
44
## Terms lookup
45
45
@@ -249,4 +249,5 @@ Parameter | Data type | Description
249
249
`index` | String | The name of the index in which to fetch field values. Required.
250
250
`id` | String | The document ID of the document from which to fetch field values. Required.
251
251
`path` | String | The name of the field from which to fetch field values. Specify nested fields using dot path notation. Required.
252
-
`routing` | String | Custom routing value of the document from which to fetch field values. Optional. Required if a custom routing value was provided when the document was indexed.
252
+
`routing` | String | Custom routing value of the document from which to fetch field values. Optional. Required if a custom routing value was provided when the document was indexed.
253
+
`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.
Copy file name to clipboardExpand all lines: _query-dsl/term/wildcard.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The `<field>` accepts the following parameters. All parameters except `value` ar
61
61
Parameter | Data type | Description
62
62
:--- | :--- | :---
63
63
`value` | String | The wildcard pattern used for matching terms in the field specified in `<field>`.
64
-
`boost` | Floating-point | Boosts the query by the given multiplier. Useful for searches that contain more than one query. Values in the [0, 1) range decrease relevance, and values greater than 1 increase relevance. Default is `1`.
64
+
`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.
65
65
`case_insensitive` | Boolean | If `true`, allows case-insensitive matching of the value with the indexed field values. Default is `false` (case sensitivity is determined by the field's mapping).
66
66
`rewrite` | String | Determines how OpenSearch rewrites and scores multi-term queries. Valid values are `constant_score`, `scoring_boolean`, `constant_score_boolean`, `top_terms_N`, `top_terms_boost_N`, and `top_terms_blended_freqs_N`. Default is `constant_score`.
0 commit comments