Class RangeQueryNode
- java.lang.Object
-
- org.apache.lucene.queryParser.core.nodes.QueryNodeImpl
-
- org.apache.lucene.queryParser.standard.nodes.AbstractRangeQueryNode<FieldQueryNode>
-
- org.apache.lucene.queryParser.standard.nodes.TermRangeQueryNode
-
- org.apache.lucene.queryParser.standard.nodes.RangeQueryNode
-
- All Implemented Interfaces:
Serializable,Cloneable,FieldableNode,QueryNode,RangeQueryNode<FieldValuePairQueryNode<?>>
@Deprecated public class RangeQueryNode extends TermRangeQueryNode
Deprecated.this class will be removed in future,TermRangeQueryNodeshould be used insteadThis query node represents a range query. It also holds which collator will be used by the range query and if the constant score rewrite is enabled.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields
-
-
Constructor Summary
Constructors Constructor Description RangeQueryNode(ParametricQueryNode lower, ParametricQueryNode upper, Collator collator)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CollatorgetCollator()Deprecated.ParametricQueryNodegetLowerBound()Deprecated.Returns the lower bound node.ParametricQueryNodegetUpperBound()Deprecated.Returns the upper bound node.voidsetBounds(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive)Deprecated.Sets lower and upper bounds.StringtoString()Deprecated.Every implementation of this class should return pseudo xml like this: For FieldQueryNode:-
Methods inherited from class org.apache.lucene.queryParser.standard.nodes.AbstractRangeQueryNode
getField, isLowerInclusive, isUpperInclusive, setField, toQueryString
-
Methods inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl
add, add, allocate, clone, cloneTree, containsTag, containsTag, getChildren, getParent, getTag, getTag, getTagMap, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, setTag, unsetTag, unsetTag
-
-
-
-
Constructor Detail
-
RangeQueryNode
public RangeQueryNode(ParametricQueryNode lower, ParametricQueryNode upper, Collator collator)
Deprecated.- Parameters:
lower-upper-
-
-
Method Detail
-
getLowerBound
public ParametricQueryNode getLowerBound()
Deprecated.Description copied from class:AbstractRangeQueryNodeReturns the lower bound node.- Specified by:
getLowerBoundin interfaceRangeQueryNode<FieldValuePairQueryNode<?>>- Overrides:
getLowerBoundin classAbstractRangeQueryNode<FieldQueryNode>- Returns:
- the lower bound node.
-
getUpperBound
public ParametricQueryNode getUpperBound()
Deprecated.Description copied from class:AbstractRangeQueryNodeReturns the upper bound node.- Specified by:
getUpperBoundin interfaceRangeQueryNode<FieldValuePairQueryNode<?>>- Overrides:
getUpperBoundin classAbstractRangeQueryNode<FieldQueryNode>- Returns:
- the upper bound node.
-
setBounds
public void setBounds(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive)
Deprecated.Sets lower and upper bounds. The method signature expectsFieldQueryNodeobjects as lower and upper, however, anIllegalArgumentExceptionwill be thrown at runtime if a nonParametricQueryNodeis passed as lower and upper.- Overrides:
setBoundsin classAbstractRangeQueryNode<FieldQueryNode>- Parameters:
lower- aParametricQueryNodeobjectupper- aParametricQueryNodeobjectlowerInclusive-trueif lower bound is inclusive, otherwise,falseupperInclusive-trueif upper bound is inclusive, otherwise,false- Throws:
IllegalArgumentException- if lower or upper are not instance ofParametricQueryNode- See Also:
AbstractRangeQueryNode.setBounds(T, T, boolean, boolean)
-
toString
public String toString()
Deprecated.Description copied from class:QueryNodeImplEvery implementation of this class should return pseudo xml like this: For FieldQueryNode:- Specified by:
toStringin interfaceQueryNode- Overrides:
toStringin classQueryNodeImpl- See Also:
QueryNode.toString()
-
getCollator
public Collator getCollator()
Deprecated.- Returns:
- the collator
-
-