Class Lucene90Codec

    • Constructor Detail

      • Lucene90Codec

        public Lucene90Codec()
        Instantiates a new codec.
      • Lucene90Codec

        public Lucene90Codec​(Lucene90Codec.Mode mode)
        Instantiates a new codec, specifying the stored fields compression mode to use.
        Parameters:
        mode - stored fields compression mode to use for newly flushed/merged segments.
    • Method Detail

      • getPostingsFormatForField

        public PostingsFormat getPostingsFormatForField​(String field)
        Returns the postings format that should be used for writing new segments of field.

        The default implementation always returns "Lucene90".

        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

        public DocValuesFormat getDocValuesFormatForField​(String field)
        Returns the docvalues format that should be used for writing new segments of field .

        The default implementation always returns "Lucene90".

        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

        public KnnVectorsFormat getKnnVectorsFormatForField​(String field)
        Returns the vectors format that should be used for writing new segments of field

        The default implementation always returns "Lucene90".

        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.

      • normsFormat

        public final NormsFormat normsFormat()
        Description copied from class: Codec
        Encodes/decodes document normalization values
        Specified by:
        normsFormat in class Codec