Class Int64DocValuesField
Field that stores a per-document long value for scoring, sorting or value retrieval. Here's an example usage:
document.Add(new Int64DocValuesField(name, 22L));
If you also need to store the value, you should add a separate StoredField instance.
NOTE: This was LongDocValuesField in Lucene
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Use NumericDocValuesField instead")]
public class Int64DocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
Int64DocValuesField(string, long)
Creates a new DocValues field with the specified 64-bit long value
Declaration
public Int64DocValuesField(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 |