Class DoubleDocValuesField
Syntactic sugar for encoding doubles as NumericDocValues via DoubleToRawInt64Bits(double).
Per-document double values can be retrieved via GetDoubles(AtomicReader, string, bool). NOTE: In most all cases this will be rather inefficient, requiring eight bytes per document. Consider encoding double values yourself with only as much precision as you require.Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class DoubleDocValuesField : NumericDocValuesField, IIndexableField, IFormattable
Constructors
DoubleDocValuesField(string, double)
Creates a new DocValues field with the specified 64-bit double value
Declaration
public DoubleDocValuesField(string name, double value)
Parameters
Type | Name | Description |
---|---|---|
string | name | field name |
double | value | 64-bit double value |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | if the field name is |
Methods
SetDoubleValue(double)
Expert: change the value of this field. See SetStringValue(string).
Declaration
public override void SetDoubleValue(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value |
Overrides
SetInt64Value(long)
Expert: change the value of this field. See SetStringValue(string).
Declaration
public override void SetInt64Value(long value)
Parameters
Type | Name | Description |
---|---|---|
long | value |