Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    QueryNode
    AbstractRangeQueryNode<NumericQueryNode>
    NumericRangeQueryNode
    Implements
    IAbstractRangeQueryNode
    IRangeQueryNode<IFieldableNode>
    IRangeQueryNode
    IFieldableNode
    IQueryNode
    Inherited Members
    AbstractRangeQueryNode<NumericQueryNode>.Field
    AbstractRangeQueryNode<NumericQueryNode>.LowerBound
    AbstractRangeQueryNode<NumericQueryNode>.UpperBound
    AbstractRangeQueryNode<NumericQueryNode>.IsLowerInclusive
    AbstractRangeQueryNode<NumericQueryNode>.IsUpperInclusive
    AbstractRangeQueryNode<NumericQueryNode>.SetBounds(NumericQueryNode, NumericQueryNode, bool, bool)
    AbstractRangeQueryNode<NumericQueryNode>.ToQueryString(IEscapeQuerySyntax)
    QueryNode.PLAINTEXT_FIELD_NAME
    QueryNode.Allocate()
    QueryNode.Add(IQueryNode)
    QueryNode.Add(IList<IQueryNode>)
    QueryNode.IsLeaf
    QueryNode.Set(IList<IQueryNode>)
    QueryNode.CloneTree()
    QueryNode.Clone()
    QueryNode.GetChildren()
    QueryNode.SetTag(string, object)
    QueryNode.UnsetTag(string)
    QueryNode.ContainsTag(string)
    QueryNode.GetTag(string)
    QueryNode.TryGetTag(string, out object)
    QueryNode.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(string)
    QueryNode.TagMap
    QueryNode.RemoveChildren(IQueryNode)
    QueryNode.RemoveFromParent()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

    true if the lower bound is inclusive, otherwise, false

    bool upperInclusive

    true if the upper bound is inclusive, otherwise, false

    NumericConfig numericConfig

    the NumericConfig that represents associated with the upper and lower bounds

    See Also
    SetBounds(NumericQueryNode, NumericQueryNode, bool, bool, NumericConfig)

    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
    NumericQueryNode
    AbstractRangeQueryNode<T>

    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

    true if the lower bound is inclusive, otherwise, false

    bool upperInclusive

    true if the upper bound is inclusive, otherwise, false

    NumericConfig numericConfig

    the NumericConfig that represents associated with the upper and lower bounds

    See Also
    NumericQueryNode
    AbstractRangeQueryNode<T>

    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
    Overrides
    AbstractRangeQueryNode<NumericQueryNode>.ToString()
    See Also
    ToString()

    Implements

    IAbstractRangeQueryNode
    IRangeQueryNode<T>
    IRangeQueryNode
    IFieldableNode
    IQueryNode

    See Also

    NumericQueryNode
    AbstractRangeQueryNode<T>
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.