public class NodeNumericRangeQueryNode
extends org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode<org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode>
QueryNode represents a range query composed by
NodeNumericQueryNode bounds, which means the bound values are
Numbers.
The configuration in Siren of a numeric value is done through Analyzers,
not through NumericConfig.
Class copied from NumericRangeQueryNode and adapted for the SIREn use
case.
| Modifier and Type | Field and Description |
|---|---|
NumericAnalyzer |
numericAnalyzer |
org.apache.lucene.document.FieldType.NumericType |
numericType |
| Constructor and Description |
|---|
NodeNumericRangeQueryNode(org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode lower,
org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
NumericAnalyzer numericAnalyzer)
Constructs a
NodeNumericRangeQueryNode object using the given
NumericQueryNode as its bounds and a NumericAnalyzer. |
| Modifier and Type | Method and Description |
|---|---|
NumericAnalyzer |
getNumericAnalyzer()
Returns the
NumericAnalyzer associated with the lower and upper bounds. |
org.apache.lucene.document.FieldType.NumericType |
getNumericType()
Returns the
FieldType.NumericType of the lower and upper bounds. |
String |
toString() |
getField, getLowerBound, getUpperBound, isLowerInclusive, isUpperInclusive, setBounds, setField, toQueryStringadd, add, allocate, clone, cloneTree, containsTag, getChildren, getParent, getTag, getTagMap, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTagpublic final NumericAnalyzer numericAnalyzer
public final org.apache.lucene.document.FieldType.NumericType numericType
public NodeNumericRangeQueryNode(org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode lower,
org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
NumericAnalyzer numericAnalyzer)
throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
NodeNumericRangeQueryNode object using the given
NumericQueryNode as its bounds and a NumericAnalyzer.lower - the lower boundupper - the upper boundlowerInclusive - true if the lower bound is inclusive, otherwise, falseupperInclusive - true if the upper bound is inclusive, otherwise, falsenumericAnalyzer - the NumericAnalyzer associated with the upper and lower boundsorg.apache.lucene.queryparser.flexible.core.QueryNodeExceptionpublic NumericAnalyzer getNumericAnalyzer()
NumericAnalyzer associated with the lower and upper bounds.public org.apache.lucene.document.FieldType.NumericType getNumericType()
FieldType.NumericType of the lower and upper bounds.public String toString()
toString in interface org.apache.lucene.queryparser.flexible.core.nodes.QueryNodetoString in class org.apache.lucene.queryparser.flexible.standard.nodes.AbstractRangeQueryNode<org.apache.lucene.queryparser.flexible.standard.nodes.NumericQueryNode>Copyright © 2014. All rights reserved.