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:
java.lang.Cloneable
,FieldableNode
,QueryNode
,RangeQueryNode<FieldValuePairQueryNode<?>>
public class TermRangeQueryNode extends AbstractRangeQueryNode<FieldQueryNode>
This query node represents a range query composed byFieldQueryNode
bounds, which means the bound values are strings.- See Also:
FieldQueryNode
,AbstractRangeQueryNode
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
PLAINTEXT_FIELD_NAME
-
-
Constructor Summary
Constructors Constructor Description TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive)
Constructs aTermRangeQueryNode
object using the givenFieldQueryNode
as its bounds.
-
Method Summary
-
Methods inherited from class org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode
getField, getLowerBound, getUpperBound, isLowerInclusive, isUpperInclusive, setBounds, setField, toQueryString, toString
-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.nodes.QueryNodeImpl
add, add, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeFromParent, set, setTag, unsetTag
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
add, add, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isLeaf, removeFromParent, set, setTag, unsetTag
-
-
-
-
Constructor Detail
-
TermRangeQueryNode
public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper, boolean lowerInclusive, boolean upperInclusive)
Constructs aTermRangeQueryNode
object using the givenFieldQueryNode
as its bounds.- Parameters:
lower
- the lower boundupper
- the upper boundlowerInclusive
-true
if the lower bound is inclusive, otherwise,false
upperInclusive
-true
if the upper bound is inclusive, otherwise,false
-
-