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(java.lang.Object o) |
java.lang.String |
getField() |
RegexCapabilities |
getRegexImplementation() |
org.apache.lucene.search.spans.Spans |
getSpans(org.apache.lucene.index.IndexReader reader) |
org.apache.lucene.index.Term |
getTerm() |
java.util.Collection |
getTerms() |
int |
hashCode() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
java.lang.String |
toString(java.lang.String field) |
public org.apache.lucene.index.Term getTerm()
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
rewrite in class org.apache.lucene.search.Queryjava.io.IOExceptionpublic org.apache.lucene.search.spans.Spans getSpans(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
getSpans in class org.apache.lucene.search.spans.SpanQueryjava.io.IOExceptionpublic java.lang.String getField()
getField in class org.apache.lucene.search.spans.SpanQuerypublic java.util.Collection getTerms()
getTerms in class org.apache.lucene.search.spans.SpanQuerypublic boolean equals(java.lang.Object o)
equals in class org.apache.lucene.search.Querypublic int hashCode()
hashCode in class org.apache.lucene.search.Querypublic java.lang.String toString(java.lang.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-2016 Apache Software Foundation. All Rights Reserved.