Class DoubleDocValuesField
Syntactic sugar for encoding doubles as NumericDocValues
via
Per-document double values can be retrieved via GetDoubles(AtomicReader, String, Boolean).
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.
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class DoubleDocValuesField : NumericDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceDoubleDocValuesField(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 |
---|---|---|
System.String | name | field name |
System.Double | value | 64-bit double value |
Methods
| Improve this Doc View SourceSetDoubleValue(Double)
Declaration
public override void SetDoubleValue(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
Overrides
| Improve this Doc View SourceSetInt64Value(Int64)
Declaration
public override void SetInt64Value(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value |