Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Field
    NumericDocValuesField
    DoubleDocValuesField
    Implements
    IIndexableField
    Inherited Members
    NumericDocValuesField.TYPE
    Field.m_type
    Field.m_name
    Field.FieldsData
    Field.m_tokenStream
    Field.m_boost
    Field.GetStringValue()
    Field.GetStringValue(IFormatProvider)
    Field.GetStringValue(String)
    Field.GetStringValue(String, IFormatProvider)
    Field.GetReaderValue()
    Field.GetTokenStreamValue()
    Field.SetStringValue(String)
    Field.SetReaderValue(TextReader)
    Field.SetBytesValue(BytesRef)
    Field.SetBytesValue(Byte[])
    Field.SetByteValue(Byte)
    Field.SetInt16Value(Int16)
    Field.SetInt32Value(Int32)
    Field.SetSingleValue(Single)
    Field.SetTokenStream(TokenStream)
    Field.Name
    Field.Boost
    Field.GetNumericValue()
    Field.NumericType
    Field.GetByteValue()
    Field.GetInt16Value()
    Field.GetInt32Value()
    Field.GetInt64Value()
    Field.GetSingleValue()
    Field.GetDoubleValue()
    Field.GetBinaryValue()
    Field.ToString()
    Field.FieldType
    Field.IndexableFieldType
    Field.GetTokenStream(Analyzer)
    Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
    Namespace: Lucene.Net.Documents
    Assembly: Lucene.Net.dll
    Syntax
    public class DoubleDocValuesField : NumericDocValuesField, IIndexableField

    Constructors

    | Improve this Doc View Source

    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
    System.String name

    field name

    System.Double value

    64-bit double value

    Methods

    | Improve this Doc View Source

    SetDoubleValue(Double)

    Declaration
    public override void SetDoubleValue(double value)
    Parameters
    Type Name Description
    System.Double value
    Overrides
    Field.SetDoubleValue(Double)
    | Improve this Doc View Source

    SetInt64Value(Int64)

    Declaration
    public override void SetInt64Value(long value)
    Parameters
    Type Name Description
    System.Int64 value
    Overrides
    Field.SetInt64Value(Int64)

    Implements

    IIndexableField
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)