C# Class Lucene.Net.QueryParsers.Flexible.Standard.Config.NumericConfig

This class holds the configuration used to parse numeric queries and create Search.NumericRangeQuerys.
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int

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

NumericConfig ( int precisionStep, NumberFormat format, FieldType type ) : Lucene.Net.Support

Constructs a NumericConfig object.

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

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

NumericConfig() public method

Constructs a NumericConfig object.
public NumericConfig ( int precisionStep, NumberFormat format, FieldType type ) : Lucene.Net.Support
precisionStep int the precision used to index the numeric values
format Lucene.Net.Support.NumberFormat the used to parse a to an representing a .NET numeric type.
type Lucene.Net.Documents.FieldType the numeric type used to index the numeric values
return Lucene.Net.Support