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