wildcard

Return an IntervalsSource over the disjunction of all terms that match a wildcard glob

See also

for glob format

Throws

if the wildcard glob expands to more than DEFAULT_MAX_EXPANSIONS terms


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

Expert: Return an IntervalsSource over the disjunction of all terms that match a wildcard glob

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

Parameters

wildcard

the glob to expand

maxExpansions

the maximum number of terms to expand to

See also

for glob format

Throws

if the wildcard glob expands to more than maxExpansions terms