public class DistanceQuery extends ComposedQuery implements DistanceSubQuery
theEmptyLcnQuery
Constructor and Description |
---|
DistanceQuery(java.util.List<SrndQuery> queries,
boolean infix,
int opDistance,
java.lang.String opName,
boolean ordered) |
Modifier and Type | Method and Description |
---|---|
void |
addSpanQueries(SpanNearClauseFactory sncf) |
java.lang.String |
distanceSubQueryNotAllowed()
When distanceSubQueryNotAllowed() returns non null, the reason why the subquery
is not allowed as a distance subquery is returned.
|
int |
getOpDistance() |
Query |
getSpanNearQuery(IndexReader reader,
java.lang.String fieldName,
float boost,
BasicQueryFactory qf) |
Query |
makeLuceneQueryFieldNoBoost(java.lang.String fieldName,
BasicQueryFactory qf) |
boolean |
subQueriesOrdered() |
getBracketClose, getBracketOpen, getNrSubQueries, getOperatorName, getPrefixSeparator, getSubQueriesIterator, getSubQuery, infixToString, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, prefixToString, recompose, toString
clone, getWeight, getWeightOperator, getWeightString, isWeighted, makeLuceneQueryField, setWeight, weightToString
public DistanceQuery(java.util.List<SrndQuery> queries, boolean infix, int opDistance, java.lang.String opName, boolean ordered)
public int getOpDistance()
public boolean subQueriesOrdered()
public java.lang.String distanceSubQueryNotAllowed()
DistanceSubQuery
distanceSubQueryNotAllowed
in interface DistanceSubQuery
public void addSpanQueries(SpanNearClauseFactory sncf) throws java.io.IOException
addSpanQueries
in interface DistanceSubQuery
java.io.IOException
public Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost
in class SrndQuery
public Query getSpanNearQuery(IndexReader reader, java.lang.String fieldName, float boost, BasicQueryFactory qf) throws java.io.IOException
java.io.IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.