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:
Cloneable,DistanceSubQuery
Factory for disjunctions
-
Field Summary
Fields inherited from class org.apache.lucene.queryparser.surround.query.ComposedQuery
opName, queries -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWhen distanceSubQueryNotAllowed() returns non null, the reason why the subquery is not allowed as a distance subquery is returned.makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) Methods inherited from class org.apache.lucene.queryparser.surround.query.ComposedQuery
getBracketClose, getBracketOpen, getNrSubQueries, getOperatorName, getPrefixSeparator, getSubQueriesIterator, getSubQuery, infixToString, isFieldsSubQueryAcceptable, isOperatorInfix, makeLuceneSubQueriesField, prefixToString, recompose, toStringMethods inherited from class org.apache.lucene.queryparser.surround.query.SrndQuery
clone, equals, getWeight, getWeightOperator, getWeightString, hashCode, isWeighted, makeLuceneQueryField, setWeight, weightToString
-
Constructor Details
-
OrQuery
-
-
Method Details
-
makeLuceneQueryFieldNoBoost
- Specified by:
makeLuceneQueryFieldNoBoostin classSrndQuery
-
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
- Specified by:
addSpanQueriesin interfaceDistanceSubQuery- Throws:
IOException
-