@@ -73,7 +73,9 @@ Valid rules include:
73
73
* <<intervals-match,`match`>>
74
74
* <<intervals-prefix,`prefix`>>
75
75
* <<intervals-wildcard,`wildcard`>>
76
+ * <<intervals-regexp,`regexp`>>
76
77
* <<intervals-fuzzy,`fuzzy`>>
78
+ * <<intervals-range,`range`>>
77
79
* <<intervals-all_of,`all_of`>>
78
80
* <<intervals-any_of,`any_of`>>
79
81
--
@@ -122,8 +124,9 @@ unstemmed ones.
122
124
==== `prefix` rule parameters
123
125
124
126
The `prefix` rule matches terms that start with a specified set of characters.
125
- This prefix can expand to match at most 128 terms. If the prefix matches more
126
- than 128 terms, {es} returns an error. You can use the
127
+ This prefix can expand to match at most `indices.query.bool.max_clause_count`
128
+ <<search-settings,search setting>> terms. If the prefix matches more terms,
129
+ {es} returns an error. You can use the
127
130
<<index-prefixes,`index-prefixes`>> option in the field mapping to avoid this
128
131
limit.
129
132
@@ -149,7 +152,8 @@ separate `analyzer` is specified.
149
152
==== `wildcard` rule parameters
150
153
151
154
The `wildcard` rule matches terms using a wildcard pattern. This pattern can
152
- expand to match at most 128 terms. If the pattern matches more than 128 terms,
155
+ expand to match at most `indices.query.bool.max_clause_count`
156
+ <<search-settings,search setting>> terms. If the pattern matches more terms,
153
157
{es} returns an error.
154
158
155
159
`pattern`::
@@ -178,12 +182,44 @@ The `pattern` is normalized using the search analyzer from this field, unless
178
182
`analyzer` is specified separately.
179
183
--
180
184
185
+ [[intervals-regexp]]
186
+ ==== `regexp` rule parameters
187
+
188
+ The `regexp` rule matches terms using a regular expression pattern.
189
+ This pattern can expand to match at most `indices.query.bool.max_clause_count`
190
+ <<search-settings,search setting>> terms.
191
+ If the pattern matches more terms,{es} returns an error.
192
+
193
+ `pattern`::
194
+ (Required, string) Regexp pattern used to find matching terms.
195
+ For a list of operators supported by the
196
+ `regexp` pattern, see <<regexp-syntax, Regular expression syntax>>.
197
+
198
+ WARNING: Avoid using wildcard patterns, such as `.*` or `.*?+``. This can
199
+ increase the iterations needed to find matching terms and slow search
200
+ performance.
201
+ --
202
+ `analyzer`::
203
+ (Optional, string) <<analysis, analyzer>> used to normalize the `pattern`.
204
+ Defaults to the top-level `<field>`'s analyzer.
205
+ --
206
+ `use_field`::
207
+ +
208
+ --
209
+ (Optional, string) If specified, match intervals from this field rather than the
210
+ top-level `<field>`.
211
+
212
+ The `pattern` is normalized using the search analyzer from this field, unless
213
+ `analyzer` is specified separately.
214
+ --
215
+
181
216
[[intervals-fuzzy]]
182
217
==== `fuzzy` rule parameters
183
218
184
219
The `fuzzy` rule matches terms that are similar to the provided term, within an
185
220
edit distance defined by <<fuzziness>>. If the fuzzy expansion matches more than
186
- 128 terms, {es} returns an error.
221
+ `indices.query.bool.max_clause_count`
222
+ <<search-settings,search setting>> terms, {es} returns an error.
187
223
188
224
`term`::
189
225
(Required, string) The term to match
@@ -214,6 +250,41 @@ The `term` is normalized using the search analyzer from this field, unless
214
250
`analyzer` is specified separately.
215
251
--
216
252
253
+ [[intervals-range]]
254
+ ==== `range` rule parameters
255
+
256
+ The `range` rule matches terms contained within a provided range.
257
+ This range can expand to match at most `indices.query.bool.max_clause_count`
258
+ <<search-settings,search setting>> terms.
259
+ If the range matches more terms,{es} returns an error.
260
+
261
+ `gt`::
262
+ (Optional, string) Greater than: match terms greater than the provided term.
263
+
264
+ `gte`::
265
+ (Optional, string) Greater than or equal to: match terms greater than or
266
+ equal to the provided term.
267
+
268
+ `lt`::
269
+ (Optional, string) Less than: match terms less than the provided term.
270
+
271
+ `lte`::
272
+ (Optional, string) Less than or equal to: match terms less than or
273
+ equal to the provided term.
274
+
275
+ NOTE: It is required to provide one of `gt` or `gte` params.
276
+ It is required to provide one of `lt` or `lte` params.
277
+
278
+
279
+ `analyzer`::
280
+ (Optional, string) <<analysis, analyzer>> used to normalize the `pattern`.
281
+ Defaults to the top-level `<field>`'s analyzer.
282
+
283
+ `use_field`::
284
+ (Optional, string) If specified, match intervals from this field rather than the
285
+ top-level `<field>`.
286
+
287
+
217
288
[[intervals-all_of]]
218
289
==== `all_of` rule parameters
219
290
0 commit comments