public class SpanRegexQuery extends SpanQuery implements RegexQueryCapable
RegexQuery allowing regular expression
queries to be nested within other SpanQuery subclasses.| Constructor and Description |
|---|
SpanRegexQuery(Term term) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getField() |
PayloadSpans |
getPayloadSpans(IndexReader reader) |
RegexCapabilities |
getRegexImplementation() |
Spans |
getSpans(IndexReader reader) |
Term |
getTerm() |
Collection |
getTerms() |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
String |
toString(String field) |
createWeightclone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weightpublic SpanRegexQuery(Term term)
public Term getTerm()
public Query rewrite(IndexReader reader) throws IOException
rewrite in class QueryIOExceptionpublic Spans getSpans(IndexReader reader) throws IOException
getSpans in class SpanQueryIOExceptionpublic PayloadSpans getPayloadSpans(IndexReader reader) throws IOException
getPayloadSpans in class SpanQueryIOExceptionpublic Collection getTerms()
public void setRegexImplementation(RegexCapabilities impl)
setRegexImplementation in interface RegexQueryCapablepublic RegexCapabilities getRegexImplementation()
getRegexImplementation in interface RegexQueryCapableCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.