Class TermRangeQueryNode
java.lang.Object
org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode<FieldQueryNode>
org.apache.lucene.queryparser.flexible.standard.nodes.TermRangeQueryNode
- All Implemented Interfaces:
Cloneable,FieldableNode,QueryNode,RangeQueryNode<FieldValuePairQueryNode<?>>
This query node represents a range query composed by
FieldQueryNode bounds, which means
the bound values are strings.- See Also:
-
Field Summary
Fields inherited from class org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields -
Constructor Summary
ConstructorsConstructorDescriptionTermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive) Constructs aTermRangeQueryNodeobject using the givenFieldQueryNodeas its bounds. -
Method Summary
Methods inherited from class org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode
getField, getLowerBound, getUpperBound, isLowerInclusive, isUpperInclusive, setBounds, setField, toQueryString, toStringMethods inherited from class org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
add, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, removeChildren, removeFromParent, set, setLeaf, setTag, unsetTagMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
add, add, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeChildren, removeFromParent, set, setTag, unsetTag
-
Constructor Details
-
TermRangeQueryNode
public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive) Constructs aTermRangeQueryNodeobject using the givenFieldQueryNodeas its bounds.- Parameters:
lower- the lower boundupper- the upper boundlowerInclusive-trueif the lower bound is inclusive, otherwise,falseupperInclusive-trueif the upper bound is inclusive, otherwise,false
-