public class DistanceQuery extends ComposedQuery implements DistanceSubQuery
opName, queriestheEmptyLcnQuery| 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,
float boost,
BasicQueryFactory qf) |
Query |
makeLuceneQueryFieldNoBoost(String fieldName,
BasicQueryFactory qf) |
boolean |
subQueriesOrdered() |
getBracketClose, getBracketOpen, getNrSubQueries, getOperatorName, getPrefixSeparator, getSubQueriesIterator, getSubQuery, infixToString, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, prefixToString, recompose, toStringclone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight, weightToStringpublic int getOpDistance()
public boolean subQueriesOrdered()
public String distanceSubQueryNotAllowed()
DistanceSubQuerydistanceSubQueryNotAllowed in interface DistanceSubQuerypublic void addSpanQueries(SpanNearClauseFactory sncf) throws IOException
addSpanQueries in interface DistanceSubQueryIOExceptionpublic Query getSpanNearQuery(IndexReader reader, String fieldName, float boost, BasicQueryFactory qf) throws IOException
IOExceptionpublic Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost in class SrndQueryCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.