@@ -73,7 +73,9 @@ Valid rules include:
7373* <<intervals-match,`match`>>
7474* <<intervals-prefix,`prefix`>>
7575* <<intervals-wildcard,`wildcard`>>
76+ * <<intervals-regexp,`regexp`>>
7677* <<intervals-fuzzy,`fuzzy`>>
78+ * <<intervals-range,`range`>>
7779* <<intervals-all_of,`all_of`>>
7880* <<intervals-any_of,`any_of`>>
7981--
@@ -122,8 +124,9 @@ unstemmed ones.
122124==== `prefix` rule parameters
123125
124126The `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
127130<<index-prefixes,`index-prefixes`>> option in the field mapping to avoid this
128131limit.
129132
@@ -149,7 +152,8 @@ separate `analyzer` is specified.
149152==== `wildcard` rule parameters
150153
151154The `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,
153157{es} returns an error.
154158
155159`pattern`::
@@ -178,12 +182,44 @@ The `pattern` is normalized using the search analyzer from this field, unless
178182`analyzer` is specified separately.
179183--
180184
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+
181216[[intervals-fuzzy]]
182217==== `fuzzy` rule parameters
183218
184219The `fuzzy` rule matches terms that are similar to the provided term, within an
185220edit 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.
187223
188224`term`::
189225(Required, string) The term to match
@@ -214,6 +250,41 @@ The `term` is normalized using the search analyzer from this field, unless
214250`analyzer` is specified separately.
215251--
216252
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+
217288[[intervals-all_of]]
218289==== `all_of` rule parameters
219290
0 commit comments