Class NumericRangeQueryNode
This query node represents a range query composed by NumericQueryNode bounds, which means the bound values are objects representing a .NET numeric type.
Implements
Inherited Members
Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Nodes
Assembly: Lucene.Net.QueryParser.dll
Syntax
public class NumericRangeQueryNode : AbstractRangeQueryNode<NumericQueryNode>, IAbstractRangeQueryNode, IRangeQueryNode<IFieldableNode>, IRangeQueryNode, IFieldableNode, IQueryNode
Constructors
NumericRangeQueryNode(NumericQueryNode, NumericQueryNode, bool, bool, NumericConfig)
Constructs a NumericRangeQueryNode object using the given NumericQueryNode as its bounds and NumericConfig.
Declaration
public NumericRangeQueryNode(NumericQueryNode lower, NumericQueryNode upper, bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
Parameters
Type | Name | Description |
---|---|---|
NumericQueryNode | lower | the lower bound |
NumericQueryNode | upper | the upper bound |
bool | lowerInclusive |
|
bool | upperInclusive |
|
NumericConfig | numericConfig | the NumericConfig that represents associated with the upper and lower bounds |
See Also
Properties
NumericConfig
Gets the NumericConfig associated with the lower and upper bounds.
Declaration
public virtual NumericConfig NumericConfig { get; set; }
Property Value
Type | Description |
---|---|
NumericConfig |
See Also
Methods
SetBounds(NumericQueryNode, NumericQueryNode, bool, bool, NumericConfig)
Sets the upper and lower bounds of this range query node and the NumericConfig associated with these bounds.
NOTE: When overriding this method, be aware that the constructor of this class calls a private method and not this virtual method. So if you need to override the behavior during the initialization, call your own private method from the constructor with whatever custom behavior you need.
Declaration
public virtual void SetBounds(NumericQueryNode lower, NumericQueryNode upper, bool lowerInclusive, bool upperInclusive, NumericConfig numericConfig)
Parameters
Type | Name | Description |
---|---|---|
NumericQueryNode | lower | the lower bound |
NumericQueryNode | upper | the upper bound |
bool | lowerInclusive |
|
bool | upperInclusive |
|
NumericConfig | numericConfig | the NumericConfig that represents associated with the upper and lower bounds |
See Also
ToString()
Every implementation of this class should return pseudo xml like this:
For FieldQueryNode: <field start='1' end='2' field='subject' text='foo'/>
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |