public abstract class SimpleTerm extends SrndQuery implements DistanceSubQuery, Comparable<SimpleTerm>
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleTerm.MatchingTermVisitor
Callback to visit each matching term during "rewrite"
in
SimpleTerm.MatchingTermVisitor.visitMatchingTerm(Term) |
Constructor and Description |
---|
SimpleTerm(boolean q) |
Modifier and Type | Method and Description |
---|---|
void |
addSpanQueries(SpanNearClauseFactory sncf) |
int |
compareTo(SimpleTerm ost)
Deprecated.
(March 2011) Not normally used, to be removed from Lucene 4.0.
This class implementing Comparable is to be removed at the same time.
|
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(StringBuilder r) |
String |
toString()
This method is used by
SrndQuery.hashCode() and SrndQuery.equals(Object) ,
see LUCENE-2945. |
abstract String |
toStringUnquoted() |
abstract void |
visitMatchingTerms(IndexReader reader,
String fieldName,
SimpleTerm.MatchingTermVisitor mtv) |
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight, weightToString
public String getQuote()
public String getFieldOperator()
public abstract String toStringUnquoted()
@Deprecated public int compareTo(SimpleTerm ost)
compareTo
in interface Comparable<SimpleTerm>
protected void suffixToString(StringBuilder r)
public String toString()
SrndQuery
SrndQuery.hashCode()
and SrndQuery.equals(Object)
,
see LUCENE-2945.public abstract void visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws IOException
IOException
public String distanceSubQueryNotAllowed()
DistanceSubQuery
distanceSubQueryNotAllowed
in interface DistanceSubQuery
public void addSpanQueries(SpanNearClauseFactory sncf) throws IOException
addSpanQueries
in interface DistanceSubQuery
IOException
public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost
in class SrndQuery
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.