|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface RegexCapabilities.RegexMatcher
Interface for basic regex matching.
Implementations return true for match(org.apache.lucene.util.BytesRef) if the term
matches the regex.
Implementing prefix() can restrict the TermsEnum to only
a subset of terms when the regular expression matches a constant
prefix.
NOTE: implementations cannot seek.
| Method Summary | |
|---|---|
boolean |
match(BytesRef term)
|
String |
prefix()
A wise prefix implementation can reduce the term enumeration (and thus increase performance) of RegexQuery dramatically! |
| Method Detail |
|---|
boolean match(BytesRef term)
term - The term in bytes.
RegexCapabilities.compile(java.lang.String).String prefix()
RegexCapabilities.compile(java.lang.String). May return null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||