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() |
org.apache.lucene.search.Query |
getSpanNearQuery(org.apache.lucene.index.IndexReader reader,
java.lang.String fieldName,
float boost,
BasicQueryFactory qf) |
org.apache.lucene.search.Query |
makeLuceneQueryFieldNoBoost(java.lang.String fieldName,
BasicQueryFactory qf) |
boolean |
subQueriesOrdered() |
getBracketClose, getBracketOpen, getNrSubQueries, getOperatorName, getPrefixSeparator, getSubQueriesIterator, getSubQuery, infixToString, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, prefixToString, recompose, toStringclone, getWeight, getWeightOperator, getWeightString, 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 org.apache.lucene.search.Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName,
BasicQueryFactory qf)
makeLuceneQueryFieldNoBoost in class SrndQuerypublic org.apache.lucene.search.Query getSpanNearQuery(org.apache.lucene.index.IndexReader reader,
java.lang.String fieldName,
float boost,
BasicQueryFactory qf)
throws java.io.IOException
java.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.