Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class NumericConfig

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

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

    Constructors

    NumericConfig(int, NumberFormat, NumericType)

    Constructs a NumericConfig object.

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

    the precision used to index the numeric values

    NumberFormat format

    the NumberFormat used to parse a string to an object representing a .NET numeric type.

    NumericType type

    the numeric type used to index the numeric values

    See Also
    PrecisionStep
    NumberFormat
    Type

    Properties

    NumberFormat

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

    Declaration
    public virtual NumberFormat NumberFormat { get; set; }
    Property Value
    Type Description
    NumberFormat
    See Also
    NumericRangeQuery
    NumberFormat

    PrecisionStep

    Gets or sets the precision used to index the numeric values

    Declaration
    public virtual int PrecisionStep { get; set; }
    Property Value
    Type Description
    int
    See Also
    PrecisionStep

    Type

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

    Declaration
    public virtual NumericType Type { get; set; }
    Property Value
    Type Description
    NumericType
    See Also
    NumericRangeQuery
    NumberFormat

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    See Also
    NumericRangeQuery
    NumberFormat

    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
    int
    Overrides
    object.GetHashCode()
    See Also
    NumericRangeQuery
    NumberFormat

    See Also

    NumericRangeQuery
    NumberFormat
    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.