Show / Hide Table of Contents

    Class AbstractRangeQueryNode<T>

    This class should be extended by nodes intending to represent range queries.

    Inheritance
    System.Object
    QueryNode
    AbstractRangeQueryNode<T>
    NumericRangeQueryNode
    TermRangeQueryNode
    Implements
    IAbstractRangeQueryNode
    IRangeQueryNode<IFieldableNode>
    IRangeQueryNode
    IFieldableNode
    IQueryNode
    Inherited Members
    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.Parent
    QueryNode.IsRoot
    QueryNode.m_toQueryStringIgnoreFields
    QueryNode.IsDefaultField(String)
    QueryNode.TagMap
    QueryNode.RemoveFromParent()
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Nodes
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class AbstractRangeQueryNode<T> : QueryNode, IAbstractRangeQueryNode, IRangeQueryNode<IFieldableNode>, IRangeQueryNode, IFieldableNode, IQueryNode where T : IFieldableNode
    Type Parameters
    Name Description
    T

    the type of the range query bounds (lower and upper)

    Constructors

    | Improve this Doc View Source

    AbstractRangeQueryNode()

    Constructs an AbstractRangeQueryNode<T>, it should be invoked only by its extenders.

    Declaration
    protected AbstractRangeQueryNode()

    Properties

    | Improve this Doc View Source

    Field

    Gets or Sets the field associated with this node.

    Declaration
    public virtual string Field { get; set; }
    Property Value
    Type Description
    System.String
    See Also
    IFieldableNode
    | Improve this Doc View Source

    IsLowerInclusive

    Gets whether the lower bound is inclusive or exclusive.

    Declaration
    public virtual bool IsLowerInclusive { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    true if the lower bound is inclusive, otherwise, false

    | Improve this Doc View Source

    IsUpperInclusive

    Gets whether the upper bound is inclusive or exclusive.

    Declaration
    public virtual bool IsUpperInclusive { get; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    true if the upper bound is inclusive, otherwise, false

    | Improve this Doc View Source

    LowerBound

    Gets the lower bound node.

    Declaration
    public virtual IFieldableNode LowerBound { get; }
    Property Value
    Type Description
    IFieldableNode
    | Improve this Doc View Source

    UpperBound

    Gets the upper bound node.

    Declaration
    public virtual IFieldableNode UpperBound { get; }
    Property Value
    Type Description
    IFieldableNode

    Methods

    | Improve this Doc View Source

    SetBounds(T, T, Boolean, Boolean)

    Sets the lower and upper bounds.

    Declaration
    public virtual void SetBounds(T lower, T upper, bool lowerInclusive, bool upperInclusive)
    Parameters
    Type Name Description
    T lower

    the lower bound, null if lower bound is open

    T upper

    the upper bound, null if upper bound is open

    System.Boolean lowerInclusive

    true if the lower bound is inclusive, otherwise, false

    System.Boolean upperInclusive

    true if the upper bound is inclusive, otherwise, false

    See Also
    LowerBound
    UpperBound
    IsLowerInclusive
    IsUpperInclusive
    | Improve this Doc View Source

    ToQueryString(IEscapeQuerySyntax)

    Declaration
    public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escapeSyntaxParser
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToQueryString(IEscapeQuerySyntax)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    QueryNode.ToString()

    Implements

    IAbstractRangeQueryNode
    IRangeQueryNode<T>
    IRangeQueryNode
    IFieldableNode
    IQueryNode
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)