Constructor NumericField
NumericField(String)
Creates a field for numeric values using the default precisionStep
Lucene.
Declaration
public NumericField(String name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
NumericField(String, Field.Store, Boolean)
Creates a field for numeric values using the default precisionStep
Lucene.
Declaration
public NumericField(String name, Field.Store store, bool index)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
Field. |
store | if the field should be stored in plain text form
(according to |
System. |
index | if the field should be indexed using Numeric |
NumericField(String, Int32)
Creates a field for numeric values with the specified
precisionStep
. The instance is not yet initialized with
a numeric value, before indexing a document containing this field,
set a value using the various set???Value() methods.
This constructor creates an indexed, but not stored field.
Declaration
public NumericField(String name, int precisionStep)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
precisionStep | the used precision step |
NumericField(String, Int32, Field.Store, Boolean)
Creates a field for numeric values with the specified
precisionStep
. The instance is not yet initialized with
a numeric value, before indexing a document containing this field,
set a value using the various set???Value() methods.
Declaration
public NumericField(String name, int precisionStep, Field.Store store, bool index)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
precisionStep | the used precision step |
Field. |
store | if the field should be stored in plain text form
(according to |
System. |
index | if the field should be indexed using Numeric |