Class NumericDocValuesField
Field that stores a per-document long value for scoring, sorting or value retrieval. Here's an example usage:
document.Add(new NumericDocValuesField(name, 22L));
If you also need to store the value, you should add a separate StoredField instance.
Inheritance
NumericDocValuesField
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class NumericDocValuesField : Field, IIndexableField, IFormattable
Constructors
NumericDocValuesField(string, long)
Declaration
public NumericDocValuesField(string name, long value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | field name |
| long | value | 64-bit long value |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | if the field |
Fields
TYPE
Type for numeric DocValues.
Declaration
public static readonly FieldType TYPE
Field Value
| Type | Description |
|---|---|
| FieldType |