org.apache.lucene.search.regex
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() |
RegexCapabilities |
getRegexImplementation() |
Spans |
getSpans(IndexReader reader) |
Term |
getTerm() |
Collection |
getTerms() |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
void |
setRegexImplementation(RegexCapabilities impl) |
String |
toString(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 IOException
rewrite
in class Query
IOException
public Spans getSpans(IndexReader reader) throws IOException
getSpans
in class SpanQuery
IOException
public Collection getTerms()
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.