Creates a field for numeric values using the default
CopyC#
precisionStep
{@link NumericUtils#PRECISION_STEP_DEFAULT} (4). 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,
	Field..::..Store store,
	bool index
)
Visual Basic
Public Sub New ( _
	name As String, _
	store As Field..::..Store, _
	index As Boolean _
)
Visual C++
public:
NumericField(
	String^ name, 
	Field..::..Store^ store, 
	bool index
)

Parameters

name
Type: System..::..String
the field name
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