A wise prefix implementation can reduce the term enumeration (and thus performance) of RegexQuery dramatically.

Namespace: Lucene.Net.Search.Regex
Assembly: Contrib.Regex (in Contrib.Regex.dll) Version: 2.9.4.0 (2.9.4)

Syntax

C#
string Prefix()
Visual Basic
Function Prefix As String
Visual C++
String^ Prefix()

Return Value

static non-regex prefix of the pattern last passed to Compile(String). May return null

See Also