Show / Hide Table of Contents

    Class ByteDocValuesField

    Field that stores a per-document value for scoring, sorting or value retrieval. Here's an example usage:

      document.Add(new ByteDocValuesField(name, (byte) 22));

    If you also need to store the value, you should add a separate StoredField instance.

    Inheritance
    System.Object
    Field
    NumericDocValuesField
    ByteDocValuesField
    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.SetInt16Value(Int16)
    Field.SetInt32Value(Int32)
    Field.SetInt64Value(Int64)
    Field.SetSingleValue(Single)
    Field.SetDoubleValue(Double)
    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 ByteDocValuesField : NumericDocValuesField, IIndexableField

    Constructors

    | Improve this Doc View Source

    ByteDocValuesField(String, Byte)

    Creates a new DocValues field with the specified 8-bit byte value

    Declaration
    public ByteDocValuesField(string name, byte value)
    Parameters
    Type Name Description
    System.String name

    field name

    System.Byte value

    8-bit byte value

    Methods

    | Improve this Doc View Source

    SetByteValue(Byte)

    Declaration
    public override void SetByteValue(byte value)
    Parameters
    Type Name Description
    System.Byte value
    Overrides
    Field.SetByteValue(Byte)

    Implements

    IIndexableField

    See Also

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