public class DistanceQuery extends ComposedQuery implements DistanceSubQuery
opName, queries| 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,
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, toStringclone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight, weightToStringpublic 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()
DistanceSubQuerydistanceSubQueryNotAllowed in interface DistanceSubQuerypublic void addSpanQueries(SpanNearClauseFactory sncf) throws java.io.IOException
addSpanQueries in interface DistanceSubQueryjava.io.IOExceptionpublic Query getSpanNearQuery(IndexReader reader, java.lang.String fieldName, BasicQueryFactory qf) throws java.io.IOException
java.io.IOExceptionpublic Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost in class SrndQueryCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.