Class Lucene60Codec

  • All Implemented Interfaces:
    NamedSPILoader.NamedSPI

    @Deprecated
    public class Lucene60Codec
    extends Codec
    Deprecated.
    Only for 6.0 back compat
    Implements the Lucene 6.0 index format, with configurable per-field postings and docvalues formats.

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

    See Also:
    package documentation for file format details.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Constructor Detail

      • Lucene60Codec

        public Lucene60Codec()
        Deprecated.
        Instantiates a new codec.
      • Lucene60Codec

        public Lucene60Codec​(Lucene50StoredFieldsFormat.Mode mode)
        Deprecated.
        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)
        Deprecated.
        Returns the postings format that should be used for writing new segments of field. The default implementation always returns "Lucene50".

        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)
        Deprecated.
        Returns the docvalues format that should be used for writing new segments of field. The default implementation always returns "Lucene54".

        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.