Class Lucene40Codec
Implements the Lucene 4.0 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.Lucene40 package documentation for file format details.Inherited Members
Namespace: Lucene.Net.Codecs.Lucene40
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Only for reading old 4.0 segments")]
[CodecName("Lucene40")]
public class Lucene40Codec : Codec
Constructors
Lucene40Codec()
Sole constructor.
Declaration
public Lucene40Codec()
Properties
DocValuesFormat
Encodes/decodes docvalues.
Declaration
public override DocValuesFormat DocValuesFormat { get; }
Property Value
Type | Description |
---|---|
DocValuesFormat |
Overrides
FieldInfosFormat
Encodes/decodes field infos file.
Declaration
public override FieldInfosFormat FieldInfosFormat { get; }
Property Value
Type | Description |
---|---|
FieldInfosFormat |
Overrides
LiveDocsFormat
Encodes/decodes live docs.
Declaration
public override sealed LiveDocsFormat LiveDocsFormat { get; }
Property Value
Type | Description |
---|---|
LiveDocsFormat |
Overrides
NormsFormat
Encodes/decodes document normalization values.
Declaration
public override NormsFormat NormsFormat { get; }
Property Value
Type | Description |
---|---|
NormsFormat |
Overrides
PostingsFormat
Encodes/decodes postings.
Declaration
public override sealed PostingsFormat PostingsFormat { get; }
Property Value
Type | Description |
---|---|
PostingsFormat |
Overrides
SegmentInfoFormat
Encodes/decodes segment info file.
Declaration
public override SegmentInfoFormat SegmentInfoFormat { get; }
Property Value
Type | Description |
---|---|
SegmentInfoFormat |
Overrides
StoredFieldsFormat
Encodes/decodes stored fields.
Declaration
public override sealed StoredFieldsFormat StoredFieldsFormat { get; }
Property Value
Type | Description |
---|---|
StoredFieldsFormat |
Overrides
TermVectorsFormat
Encodes/decodes term vectors.
Declaration
public override sealed TermVectorsFormat TermVectorsFormat { get; }
Property Value
Type | Description |
---|---|
TermVectorsFormat |
Overrides
Methods
GetPostingsFormatForField(string)
Returns the postings format that should be used for writing
new segments of field
.
Declaration
public virtual PostingsFormat GetPostingsFormatForField(string field)
Parameters
Type | Name | Description |
---|---|---|
string | field |
Returns
Type | Description |
---|---|
PostingsFormat |