Initializes the field with the supplied
CopyC#
float
value.

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

Syntax

C#
public NumericField SetFloatValue(
	float value_Renamed
)
Visual Basic
Public Function SetFloatValue ( _
	value_Renamed As Single _
) As NumericField
Visual C++
public:
NumericField^ SetFloatValue(
	float value_Renamed
)

Parameters

value_Renamed
Type: System..::..Single

[Missing <param name="value_Renamed"/> documentation for "M:Lucene.Net.Documents.NumericField.SetFloatValue(System.Single)"]

Return Value

this instance, because of this you can use it the following way:
CopyC#
document.add(new NumericField(name, precisionStep).setFloatValue(value))

See Also