Show / Hide Table of Contents

    Class NumericQueryNode

    This query node represents a field query that holds a numeric value. It is similar to FieldQueryNode, however the Value returns an representing a .NET numeric type.

    Inheritance
    System.Object
    QueryNode
    NumericQueryNode
    Implements
    IFieldValuePairQueryNode<System.Object>
    IFieldableNode
    IValueQueryNode<System.Object>
    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 NumericQueryNode : QueryNode, IFieldValuePairQueryNode<object>, IFieldableNode, IValueQueryNode<object>, IQueryNode

    Constructors

    | Improve this Doc View Source

    NumericQueryNode(String, Object, NumberFormat)

    Creates a NumericQueryNode object using the given field, (representing a .NET numeric type) value and used to convert the value to .

    Declaration
    public NumericQueryNode(string field, object value, NumberFormat numberFormat)
    Parameters
    Type Name Description
    System.String field

    the field associated with this query node

    System.Object value

    the value hold by this node

    NumberFormat numberFormat

    the used to convert the value to

    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
    | Improve this Doc View Source

    NumberFormat

    Gets or Sets the used to convert the value to .

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

    Value

    Gets or Sets the numeric value as representing a .NET numeric type.

    Declaration
    public virtual object Value { get; set; }
    Property Value
    Type Description
    System.Object

    Methods

    | Improve this Doc View Source

    GetTermEscaped(IEscapeQuerySyntax)

    This method is used to get the value converted to and escaped using the given IEscapeQuerySyntax.

    Declaration
    protected string GetTermEscaped(IEscapeQuerySyntax escaper)
    Parameters
    Type Name Description
    IEscapeQuerySyntax escaper

    The IEscapeQuerySyntax used to escape the value

    Returns
    Type Description
    System.String

    The value converted to and escaped

    | 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

    IFieldValuePairQueryNode<T>
    IFieldableNode
    IValueQueryNode<T>
    IQueryNode

    See Also

    NumericConfig
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)