Method AddNumericDocValuesField
AddNumericDocValuesField(Document, String, Int64)
Adds a new NumericDocValuesField field with the specified 64-bit
Declaration
public static NumericDocValuesField AddNumericDocValuesField(this Document document, string name, long value)
Parameters
Type | Name | Description |
---|---|---|
Document | document | This Document. |
System.String | name | field name |
System.Int64 | value | 64-bit |
Returns
Type | Description |
---|---|
NumericDocValuesField | The field that was added to this Document. |
Remarks
If you also need to store the value, you should add a separate StoredField instance.