Class SimpleTerm
- java.lang.Object
-
- org.apache.lucene.queryParser.surround.query.SrndQuery
-
- org.apache.lucene.queryParser.surround.query.SimpleTerm
-
- All Implemented Interfaces:
Cloneable,Comparable<SimpleTerm>,DistanceSubQuery
- Direct Known Subclasses:
SrndPrefixQuery,SrndTermQuery,SrndTruncQuery
public abstract class SimpleTerm extends SrndQuery implements DistanceSubQuery, Comparable<SimpleTerm>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSimpleTerm.MatchingTermVisitor
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryParser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Constructor Summary
Constructors Constructor Description SimpleTerm(boolean q)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddSpanQueries(SpanNearClauseFactory sncf)intcompareTo(SimpleTerm ost)StringdistanceSubQueryNotAllowed()When distanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.StringgetFieldOperator()StringgetQuote()QuerymakeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)protected voidsuffixToString(StringBuilder r)StringtoString()abstract StringtoStringUnquoted()abstract voidvisitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv)-
Methods inherited from class org.apache.lucene.queryParser.surround.query.SrndQuery
clone, getWeight, getWeightOperator, getWeightString, isFieldsSubQueryAcceptable, isWeighted, makeLuceneQueryField, setWeight, weightToString
-
-
-
-
Method Detail
-
getQuote
public String getQuote()
-
getFieldOperator
public String getFieldOperator()
-
toStringUnquoted
public abstract String toStringUnquoted()
-
compareTo
public int compareTo(SimpleTerm ost)
- Specified by:
compareToin interfaceComparable<SimpleTerm>
-
suffixToString
protected void suffixToString(StringBuilder r)
-
visitMatchingTerms
public abstract void visitMatchingTerms(IndexReader reader, String fieldName, SimpleTerm.MatchingTermVisitor mtv) throws IOException
- Throws:
IOException
-
distanceSubQueryNotAllowed
public String distanceSubQueryNotAllowed()
Description copied from interface:DistanceSubQueryWhen distanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.
When distanceSubQueryNotAllowed() returns null addSpanNearQueries() can be used in the creation of the span near clause for the subquery.- Specified by:
distanceSubQueryNotAllowedin interfaceDistanceSubQuery
-
makeLuceneQueryFieldNoBoost
public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
- Specified by:
makeLuceneQueryFieldNoBoostin classSrndQuery
-
addSpanQueries
public void addSpanQueries(SpanNearClauseFactory sncf) throws IOException
- Specified by:
addSpanQueriesin interfaceDistanceSubQuery- Throws:
IOException
-
-