java.lang.Object
org.apache.lucene.codecs.Codec
org.apache.lucene.codecs.FilterCodec
org.elasticsearch.index.codec.CodecService.DeduplicateFieldInfosCodec
org.elasticsearch.index.codec.Elasticsearch816Codec
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
Elasticsearch codec as of 8.16. This extends the Lucene 9.12 codec to compressed stored fields with ZSTD instead of LZ4/DEFLATE. See
Zstd814StoredFieldsFormat
.-
Field Summary
Fields inherited from class org.apache.lucene.codecs.FilterCodec
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionPublic no-arg constructor, needed for SPI loading at read-time.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.apache.lucene.codecs.DocValuesFormat
org.apache.lucene.codecs.DocValuesFormat
getDocValuesFormatForField
(String field) Returns the docvalues format that should be used for writing new segments offield
.org.apache.lucene.codecs.KnnVectorsFormat
Returns the vectors format that should be used for writing new segments offield
org.apache.lucene.codecs.PostingsFormat
getPostingsFormatForField
(String field) Returns the postings format that should be used for writing new segments offield
.final org.apache.lucene.codecs.KnnVectorsFormat
final org.apache.lucene.codecs.PostingsFormat
org.apache.lucene.codecs.StoredFieldsFormat
Methods inherited from class org.elasticsearch.index.codec.CodecService.DeduplicateFieldInfosCodec
delegate, fieldInfosFormat
Methods inherited from class org.apache.lucene.codecs.FilterCodec
compoundFormat, liveDocsFormat, normsFormat, pointsFormat, segmentInfoFormat, termVectorsFormat
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Elasticsearch816Codec
public Elasticsearch816Codec()Public no-arg constructor, needed for SPI loading at read-time. -
Elasticsearch816Codec
Constructor. Takes aZstd814StoredFieldsFormat.Mode
that describes whether to optimize for retrieval speed at the expense of worse space-efficiency or vice-versa.
-
-
Method Details
-
storedFieldsFormat
public org.apache.lucene.codecs.StoredFieldsFormat storedFieldsFormat()- Overrides:
storedFieldsFormat
in classorg.apache.lucene.codecs.FilterCodec
-
postingsFormat
public final org.apache.lucene.codecs.PostingsFormat postingsFormat()- Overrides:
postingsFormat
in classorg.apache.lucene.codecs.FilterCodec
-
docValuesFormat
public final org.apache.lucene.codecs.DocValuesFormat docValuesFormat()- Overrides:
docValuesFormat
in classorg.apache.lucene.codecs.FilterCodec
-
knnVectorsFormat
public final org.apache.lucene.codecs.KnnVectorsFormat knnVectorsFormat()- Overrides:
knnVectorsFormat
in classorg.apache.lucene.codecs.FilterCodec
-
getPostingsFormatForField
Returns the postings format that should be used for writing new segments offield
.The default implementation always returns "Lucene912".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation,
-
getDocValuesFormatForField
Returns the docvalues format that should be used for writing new segments offield
.The default implementation always returns "Lucene912".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation.
-
getKnnVectorsFormatForField
Returns the vectors format that should be used for writing new segments offield
The default implementation always returns "Lucene912".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation.
-