java.lang.Object
org.apache.lucene.codecs.Codec
org.apache.lucene.codecs.FilterCodec
org.elasticsearch.index.codec.CodecService.DeduplicateFieldInfosCodec
org.elasticsearch.index.codec.Elasticsearch900Codec
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
Elasticsearch codec as of 9.0-snapshot relying on Lucene 10.0. This extends the Lucene 10.0 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.DocValuesFormatorg.apache.lucene.codecs.DocValuesFormatgetDocValuesFormatForField(String field) Returns the docvalues format that should be used for writing new segments offield.org.apache.lucene.codecs.KnnVectorsFormatReturns the vectors format that should be used for writing new segments offieldorg.apache.lucene.codecs.PostingsFormatgetPostingsFormatForField(String field) Returns the postings format that should be used for writing new segments offield.final org.apache.lucene.codecs.KnnVectorsFormatfinal org.apache.lucene.codecs.PostingsFormatorg.apache.lucene.codecs.StoredFieldsFormatMethods inherited from class org.elasticsearch.index.codec.CodecService.DeduplicateFieldInfosCodec
delegate, fieldInfosFormatMethods inherited from class org.apache.lucene.codecs.FilterCodec
compoundFormat, liveDocsFormat, normsFormat, pointsFormat, segmentInfoFormat, termVectorsFormatMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Elasticsearch900Codec
public Elasticsearch900Codec()Public no-arg constructor, needed for SPI loading at read-time. -
Elasticsearch900Codec
Constructor. Takes aZstd814StoredFieldsFormat.Modethat 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:
storedFieldsFormatin classorg.apache.lucene.codecs.FilterCodec
-
postingsFormat
public final org.apache.lucene.codecs.PostingsFormat postingsFormat()- Overrides:
postingsFormatin classorg.apache.lucene.codecs.FilterCodec
-
docValuesFormat
public final org.apache.lucene.codecs.DocValuesFormat docValuesFormat()- Overrides:
docValuesFormatin classorg.apache.lucene.codecs.FilterCodec
-
knnVectorsFormat
public final org.apache.lucene.codecs.KnnVectorsFormat knnVectorsFormat()- Overrides:
knnVectorsFormatin 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 offieldThe 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.
-