Show / Hide Table of Contents

    Class SortedBytesDocValuesField

    Field that stores a per-document BytesRef value, indexed for sorting. Here's an example usage:

        document.Add(new SortedBytesDocValuesField(name, new BytesRef("hello")));

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

    Inheritance
    System.Object
    Field
    SortedDocValuesField
    SortedBytesDocValuesField
    Implements
    IIndexableField
    Inherited Members
    SortedDocValuesField.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.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 SortedBytesDocValuesField : SortedDocValuesField, IIndexableField

    Constructors

    | Improve this Doc View Source

    SortedBytesDocValuesField(String, BytesRef)

    Create a new fixed or variable-length sorted DocValues field.

    Declaration
    public SortedBytesDocValuesField(string name, BytesRef bytes)
    Parameters
    Type Name Description
    System.String name

    field name

    BytesRef bytes

    binary content

    | Improve this Doc View Source

    SortedBytesDocValuesField(String, BytesRef, Boolean)

    Create a new fixed or variable length sorted DocValues field.

    Declaration
    public SortedBytesDocValuesField(string name, BytesRef bytes, bool isFixedLength)
    Parameters
    Type Name Description
    System.String name

    field name

    BytesRef bytes

    binary content

    System.Boolean isFixedLength

    (ignored)

    Fields

    | Improve this Doc View Source

    TYPE_FIXED_LEN

    Type for sorted bytes DocValues: all with the same length

    Declaration
    public static readonly FieldType TYPE_FIXED_LEN
    Field Value
    Type Description
    FieldType
    | Improve this Doc View Source

    TYPE_VAR_LEN

    Type for sorted bytes DocValues: can have variable lengths

    Declaration
    public static readonly FieldType TYPE_VAR_LEN
    Field Value
    Type Description
    FieldType

    Implements

    IIndexableField

    See Also

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