public class SpanRegexQuery extends org.apache.lucene.search.spans.SpanQuery implements RegexQueryCapable
RegexQuery allowing regular expression
queries to be nested within other SpanQuery subclasses.| Constructor and Description |
|---|
SpanRegexQuery(org.apache.lucene.index.Term term) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getField() |
RegexCapabilities |
getRegexImplementation() |
org.apache.lucene.search.spans.Spans |
getSpans(org.apache.lucene.index.IndexReader reader) |
org.apache.lucene.index.Term |
getTerm() |
Collection |
getTerms() |
int |
hashCode() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
String |
toString(String field) |
public org.apache.lucene.index.Term getTerm()
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws IOException
rewrite in class org.apache.lucene.search.QueryIOExceptionpublic org.apache.lucene.search.spans.Spans getSpans(org.apache.lucene.index.IndexReader reader)
throws IOException
getSpans in class org.apache.lucene.search.spans.SpanQueryIOExceptionpublic String getField()
getField in class org.apache.lucene.search.spans.SpanQuerypublic Collection getTerms()
getTerms in class org.apache.lucene.search.spans.SpanQuerypublic boolean equals(Object o)
equals in class org.apache.lucene.search.Querypublic int hashCode()
hashCode in class org.apache.lucene.search.Querypublic String toString(String field)
toString in class org.apache.lucene.search.Querypublic void setRegexImplementation(RegexCapabilities impl)
setRegexImplementation in interface RegexQueryCapablepublic RegexCapabilities getRegexImplementation()
getRegexImplementation in interface RegexQueryCapableCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.