Class OrQuery
- java.lang.Object
-
- org.apache.lucene.queryparser.surround.query.SrndQuery
-
- org.apache.lucene.queryparser.surround.query.ComposedQuery
-
- org.apache.lucene.queryparser.surround.query.OrQuery
-
- All Implemented Interfaces:
java.lang.Cloneable,DistanceSubQuery
public class OrQuery extends ComposedQuery implements DistanceSubQuery
Factory for disjunctions
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
theEmptyLcnQuery
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSpanQueries(SpanNearClauseFactory sncf)java.lang.StringdistanceSubQueryNotAllowed()When distanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.QuerymakeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)-
Methods inherited from class org.apache.lucene.queryparser.surround.query.ComposedQuery
getNrSubQueries, getOperatorName, getSubQueriesIterator, getSubQuery, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, toString
-
Methods inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight
-
-
-
-
Constructor Detail
-
OrQuery
public OrQuery(java.util.List<SrndQuery> queries, boolean infix, java.lang.String opName)
-
-
Method Detail
-
makeLuceneQueryFieldNoBoost
public Query makeLuceneQueryFieldNoBoost(java.lang.String fieldName, BasicQueryFactory qf)
- Specified by:
makeLuceneQueryFieldNoBoostin classSrndQuery
-
distanceSubQueryNotAllowed
public java.lang.String distanceSubQueryNotAllowed()
Description copied from interface:DistanceSubQueryWhen distanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.
When distanceSubQueryNotAllowed() returns null addSpanNearQueries() can be used in the creation of the span near clause for the subquery.- Specified by:
distanceSubQueryNotAllowedin interfaceDistanceSubQuery
-
addSpanQueries
public void addSpanQueries(SpanNearClauseFactory sncf) throws java.io.IOException
- Specified by:
addSpanQueriesin interfaceDistanceSubQuery- Throws:
java.io.IOException
-
-