Initializes the field with the supplied
CopyC#
double
value.

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

Syntax

C#
public NumericField SetDoubleValue(
	double value_Renamed
)
Visual Basic
Public Function SetDoubleValue ( _
	value_Renamed As Double _
) As NumericField
Visual C++
public:
NumericField^ SetDoubleValue(
	double value_Renamed
)

Parameters

value_Renamed
Type: System..::..Double

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

Return Value

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

See Also