Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lucene41Codec

    Implements the Lucene 4.1 index format, with configurable per-field postings formats.

    If you want to reuse functionality of this codec in another codec, extend FilterCodec.

    See Lucene.Net.Codecs.Lucene41 package documentation for file format details.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Codec
    Lucene41Codec
    Inherited Members
    Codec.SetCodecFactory(ICodecFactory)
    Codec.GetCodecFactory()
    Codec.Name
    Codec.ForName(string)
    Codec.AvailableCodecs
    Codec.Default
    Codec.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Codecs.Lucene41
    Assembly: Lucene.Net.dll
    Syntax
    [Obsolete("Only for reading old 4.0 segments")]
    [CodecName("Lucene41")]
    public class Lucene41Codec : Codec

    Constructors

    Lucene41Codec()

    Sole constructor.

    Declaration
    public Lucene41Codec()

    Properties

    DocValuesFormat

    Encodes/decodes docvalues.

    Declaration
    public override DocValuesFormat DocValuesFormat { get; }
    Property Value
    Type Description
    DocValuesFormat
    Overrides
    Codec.DocValuesFormat

    FieldInfosFormat

    Encodes/decodes field infos file.

    Declaration
    public override FieldInfosFormat FieldInfosFormat { get; }
    Property Value
    Type Description
    FieldInfosFormat
    Overrides
    Codec.FieldInfosFormat

    LiveDocsFormat

    Encodes/decodes live docs.

    Declaration
    public override sealed LiveDocsFormat LiveDocsFormat { get; }
    Property Value
    Type Description
    LiveDocsFormat
    Overrides
    Codec.LiveDocsFormat

    NormsFormat

    Encodes/decodes document normalization values.

    Declaration
    public override NormsFormat NormsFormat { get; }
    Property Value
    Type Description
    NormsFormat
    Overrides
    Codec.NormsFormat

    PostingsFormat

    Encodes/decodes postings.

    Declaration
    public override sealed PostingsFormat PostingsFormat { get; }
    Property Value
    Type Description
    PostingsFormat
    Overrides
    Codec.PostingsFormat

    SegmentInfoFormat

    Encodes/decodes segment info file.

    Declaration
    public override SegmentInfoFormat SegmentInfoFormat { get; }
    Property Value
    Type Description
    SegmentInfoFormat
    Overrides
    Codec.SegmentInfoFormat

    StoredFieldsFormat

    Encodes/decodes stored fields.

    Declaration
    public override StoredFieldsFormat StoredFieldsFormat { get; }
    Property Value
    Type Description
    StoredFieldsFormat
    Overrides
    Codec.StoredFieldsFormat

    TermVectorsFormat

    Encodes/decodes term vectors.

    Declaration
    public override sealed TermVectorsFormat TermVectorsFormat { get; }
    Property Value
    Type Description
    TermVectorsFormat
    Overrides
    Codec.TermVectorsFormat

    Methods

    GetPostingsFormatForField(string)

    Returns the postings format that should be used for writing new segments of field.

    The default implementation always returns "Lucene41"
    Declaration
    public virtual PostingsFormat GetPostingsFormatForField(string field)
    Parameters
    Type Name Description
    string field
    Returns
    Type Description
    PostingsFormat
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.