org.apache.lucene.search.regex
Class SpanRegexQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.search.spans.SpanQuery
org.apache.lucene.search.regex.SpanRegexQuery
- All Implemented Interfaces:
- Serializable, Cloneable, RegexQueryCapable
public class SpanRegexQuery
- extends org.apache.lucene.search.spans.SpanQuery
- implements RegexQueryCapable
A SpanQuery version of RegexQuery
allowing regular expression
queries to be nested within other SpanQuery subclasses.
- See Also:
- Serialized Form
Methods inherited from class org.apache.lucene.search.spans.SpanQuery |
createWeight |
Methods inherited from class org.apache.lucene.search.Query |
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
SpanRegexQuery
public SpanRegexQuery(org.apache.lucene.index.Term term)
getTerm
public org.apache.lucene.index.Term getTerm()
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws IOException
- Overrides:
rewrite
in class org.apache.lucene.search.Query
- Throws:
IOException
getSpans
public org.apache.lucene.search.spans.Spans getSpans(org.apache.lucene.index.IndexReader reader)
throws IOException
- Specified by:
getSpans
in class org.apache.lucene.search.spans.SpanQuery
- Throws:
IOException
getField
public String getField()
- Specified by:
getField
in class org.apache.lucene.search.spans.SpanQuery
getTerms
public Collection<org.apache.lucene.index.Term> getTerms()
equals
public boolean equals(Object o)
- Overrides:
equals
in class org.apache.lucene.search.Query
hashCode
public int hashCode()
- Overrides:
hashCode
in class org.apache.lucene.search.Query
toString
public String toString(String field)
- Specified by:
toString
in class org.apache.lucene.search.Query
setRegexImplementation
public void setRegexImplementation(RegexCapabilities impl)
- Specified by:
setRegexImplementation
in interface RegexQueryCapable
getRegexImplementation
public RegexCapabilities getRegexImplementation()
- Specified by:
getRegexImplementation
in interface RegexQueryCapable
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.