Class SingleDocValuesField
Syntactic sugar for encoding floats as Numeric
Per-document floating point values can be retrieved via
Get
NOTE: In most all cases this will be rather inefficient, requiring four bytes per document. Consider encoding floating point values yourself with only as much precision as you require.
NOTE: This was FloatDocValuesField in Lucene
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class SingleDocValuesField : NumericDocValuesField, IIndexableField
Constructors
| Improve this Doc View SourceSingleDocValuesField(String, Single)
Creates a new DocValues field with the specified 32-bit
Declaration
public SingleDocValuesField(string name, float value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | field name |
System. |
value | 32-bit |
Methods
| Improve this Doc View SourceSetInt64Value(Int64)
Declaration
public override void SetInt64Value(long value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |
Overrides
| Improve this Doc View SourceSetSingleValue(Single)
Declaration
public override void SetSingleValue(float value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value |