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#
public string Prefix()
Visual Basic
Public Function Prefix As String
Visual C++
public:
virtual String^ Prefix() sealed

Return Value

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

Implements

IRegexCapabilities..::..Prefix()()()()

See Also