public class DistanceQuery extends ComposedQuery implements DistanceSubQuery
opName, queries
Constructor and Description |
---|
DistanceQuery(List<SrndQuery> queries,
boolean infix,
int opDistance,
String opName,
boolean ordered) |
Modifier and Type | Method and Description |
---|---|
void |
addSpanQueries(SpanNearClauseFactory sncf) |
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,
String fieldName,
BasicQueryFactory qf) |
Query |
makeLuceneQueryFieldNoBoost(String fieldName,
BasicQueryFactory qf) |
boolean |
subQueriesOrdered() |
getBracketClose, getBracketOpen, getNrSubQueries, getOperatorName, getPrefixSeparator, getSubQueriesIterator, getSubQuery, infixToString, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, prefixToString, recompose, toString
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight, weightToString
public int getOpDistance()
public boolean subQueriesOrdered()
public String distanceSubQueryNotAllowed()
DistanceSubQuery
distanceSubQueryNotAllowed
in interface DistanceSubQuery
public void addSpanQueries(SpanNearClauseFactory sncf) throws IOException
addSpanQueries
in interface DistanceSubQuery
IOException
public Query getSpanNearQuery(IndexReader reader, String fieldName, BasicQueryFactory qf) throws IOException
IOException
public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost
in class SrndQuery
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.