• API

    Show / Hide Table of Contents

    Class NumericConfig

    This class holds the configuration used to parse numeric queries and create NumericRangeQuerys.

    Inheritance
    System.Object
    NumericConfig
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.QueryParsers.Flexible.Standard.Config
    Assembly: Lucene.Net.QueryParser.dll
    Syntax
    public class NumericConfig

    Constructors

    | Improve this Doc View Source

    NumericConfig(Int32, NumberFormat, NumericType)

    Constructs a NumericConfig object.

    Declaration
    public NumericConfig(int precisionStep, NumberFormat format, NumericType type)
    Parameters
    Type Name Description
    System.Int32 precisionStep

    the precision used to index the numeric values

    Lucene.Net.Util.NumberFormat format

    the NumberFormat used to parse a System.String to an System.Object representing a .NET numeric type.

    Lucene.Net.Documents.NumericType type

    the numeric type used to index the numeric values

    See Also
    PrecisionStep
    NumberFormat
    Type

    Properties

    | Improve this Doc View Source

    NumberFormat

    Gets or Sets the Lucene.Net.Util.NumberFormat used to parse a System.String to System.Object representing a .NET numeric type, cannot be null

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

    PrecisionStep

    Gets or sets the precision used to index the numeric values

    Declaration
    public virtual int PrecisionStep { get; set; }
    Property Value
    Type Description
    System.Int32
    See Also
    PrecisionStep
    | Improve this Doc View Source

    Type

    Gets or Sets the numeric type used to index the numeric values

    Declaration
    public virtual NumericType Type { get; set; }
    Property Value
    Type Description
    Lucene.Net.Documents.NumericType

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    LUCENENET specific - Visual Studio provides a compiler warning if Equals(Object) is overridden without GetHashCode(), so we provide an implementation that mirrors Equals(Object).

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    See Also

    NumericRangeQuery
    Lucene.Net.Util.NumberFormat
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)