RegexpQuery

constructor(term: Term, syntaxFlags: Int, matchFlags: Int, provider: AutomatonProvider, determinizeWorkLimit: Int, rewriteMethod: MultiTermQuery.RewriteMethod, doDeterminization: Boolean = true)


constructor(term: Term, flags: Int = RegExp.ALL)

Constructs a query for terms matching term.

By default, all regular expression features are enabled.

Parameters

term

regular expression.


constructor(term: Term, flags: Int, determinizeWorkLimit: Int)

Constructs a query for terms matching term.

Parameters

term

regular expression.

flags

optional RegExp syntax features from RegExp

determinizeWorkLimit

maximum effort to spend while compiling the automaton from this regexp. Set higher to allow more complex queries and lower to prevent memory exhaustion. Use Operations.DEFAULT_DETERMINIZE_WORK_LIMIT as a decent default if you don't otherwise know what to specify.


constructor(term: Term, syntaxFlags: Int, matchFlags: Int, determinizeWorkLimit: Int)

Constructs a query for terms matching term.

Parameters

term

regular expression.

syntaxFlags

optional RegExp syntax features from RegExp automaton for the regexp can result in. Set higher to allow more complex queries and lower to prevent memory exhaustion.

matchFlags

boolean 'or' of match behavior options such as case insensitivity

determinizeWorkLimit

maximum effort to spend while compiling the automaton from this regexp. Set higher to allow more complex queries and lower to prevent memory exhaustion. Use Operations.DEFAULT_DETERMINIZE_WORK_LIMIT as a decent default if you don't otherwise know what to specify.


constructor(term: Term, syntaxFlags: Int, provider: AutomatonProvider, determinizeWorkLimit: Int)

Constructs a query for terms matching term.

Parameters

term

regular expression.

syntaxFlags

optional RegExp features from RegExp

provider

custom AutomatonProvider for named automata

determinizeWorkLimit

maximum effort to spend while compiling the automaton from this regexp. Set higher to allow more complex queries and lower to prevent memory exhaustion. Use Operations.DEFAULT_DETERMINIZE_WORK_LIMIT as a decent default if you don't otherwise know what to specify.