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