Method AddDoubleField
AddDoubleField(Document, String, Double, Field.Store)
Adds a stored or un-stored DoubleField with the provided value
and default precisionStep
PRECISION_STEP_DEFAULT (4).
Declaration
public static DoubleField AddDoubleField(this Document document, string name, double value, Field.Store stored)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
System.Double | value | 64-bit |
Field.Store | stored | YES if the content should also be stored |
Returns
Type | Description |
---|---|
DoubleField | The field that was added to this Document. |
AddDoubleField(Document, String, Double, FieldType)
Adds a stored or un-stored DoubleField with the provided value.
Expert: allows you to customize the FieldType.
Declaration
public static DoubleField AddDoubleField(this Document document, string name, double value, FieldType type)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
System.Double | value | 64-bit double value |
FieldType | type | customized field type: must have NumericType of DOUBLE. |
Returns
Type | Description |
---|---|
DoubleField | The field that was added to this Document. |