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(java.lang.Object o) |
java.lang.String |
getField() |
PayloadSpans |
getPayloadSpans(IndexReader reader) |
RegexCapabilities |
getRegexImplementation() |
Spans |
getSpans(IndexReader reader) |
Term |
getTerm() |
java.util.Collection |
getTerms() |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
java.lang.String |
toString(java.lang.String field) |
createWeight
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight
public SpanRegexQuery(Term term)
public Term getTerm()
public Query rewrite(IndexReader reader) throws java.io.IOException
public Spans getSpans(IndexReader reader) throws java.io.IOException
public PayloadSpans getPayloadSpans(IndexReader reader) throws java.io.IOException
getPayloadSpans
in class SpanQuery
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString(java.lang.String field)
public void setRegexImplementation(RegexCapabilities impl)
setRegexImplementation
in interface RegexQueryCapable
public RegexCapabilities getRegexImplementation()
getRegexImplementation
in interface RegexQueryCapable
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.