org.apache.lucene.queryParser.surround.query
public abstract class SimpleTerm extends SrndQuery implements DistanceSubQuery, Comparable
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleTerm.MatchingTermVisitor |
theEmptyLcnQuery
Constructor and Description |
---|
SimpleTerm(boolean q) |
Modifier and Type | Method and Description |
---|---|
void |
addSpanQueries(SpanNearClauseFactory sncf) |
int |
compareTo(Object o) |
String |
distanceSubQueryNotAllowed()
When distanceSubQueryNotAllowed() returns non null, the reason why the subquery
is not allowed as a distance subquery is returned.
|
String |
getFieldOperator() |
String |
getQuote() |
Query |
makeLuceneQueryFieldNoBoost(String fieldName,
BasicQueryFactory qf) |
protected void |
suffixToString(StringBuffer r) |
String |
toString() |
abstract String |
toStringUnquoted() |
abstract void |
visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
clone, getWeight, getWeightOperator, getWeightString, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight, weightToString
public String getQuote()
public String getFieldOperator()
public abstract String toStringUnquoted()
public int compareTo(Object o)
compareTo
in interface Comparable
protected void suffixToString(StringBuffer r)
public abstract void visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws IOException
IOException
public String distanceSubQueryNotAllowed()
DistanceSubQuery
distanceSubQueryNotAllowed
in interface DistanceSubQuery
public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost
in class SrndQuery
public void addSpanQueries(SpanNearClauseFactory sncf) throws IOException
addSpanQueries
in interface DistanceSubQuery
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.