regexp

Return an IntervalsSource over the disjunction of all terms that match a regular expression

Parameters

regexp

regular expression

See also

for regexp format

Throws

if the regex expands to more than DEFAULT_MAX_EXPANSIONS terms


fun regexp(regexp: BytesRef, maxExpansions: Int): IntervalsSource

Expert: Return an IntervalsSource over the disjunction of all terms that match a regular expression

WARNING: Setting `maxExpansions` to higher than the default value of [DEFAULT_MAX_EXPANSIONS] can be both slow and memory-intensive

Parameters

regexp

regular expression

maxExpansions

the maximum number of terms to expand to

See also

for regexp format

Throws

if the regex expands to more than DEFAULT_MAX_EXPANSIONS terms