Creates a field for numeric values with the specified
CopyC#
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.

Namespace: Lucene.Net.Documents
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public NumericField(
	string name,
	int precisionStep,
	Field..::..Store store,
	bool index
)
Visual Basic
Public Sub New ( _
	name As String, _
	precisionStep As Integer, _
	store As Field..::..Store, _
	index As Boolean _
)
Visual C++
public:
NumericField(
	String^ name, 
	int precisionStep, 
	Field..::..Store^ store, 
	bool index
)

Parameters

name
Type: System..::..String
the field name
precisionStep
Type: System..::..Int32
the used precision step
store
Type: Lucene.Net.Documents..::..Field..::..Store
if the field should be stored in plain text form (according to
CopyC#
toString(value)
of the used data type)
index
Type: System..::..Boolean
if the field should be indexed using {@link NumericTokenStream}

See Also