1212import org .apache .lucene .codecs .DocValuesFormat ;
1313import org .apache .lucene .codecs .KnnVectorsFormat ;
1414import org .apache .lucene .codecs .PostingsFormat ;
15- import org .apache .lucene .codecs .lucene101 .Lucene101PostingsFormat ;
1615import org .apache .lucene .codecs .lucene90 .Lucene90DocValuesFormat ;
1716import org .apache .lucene .codecs .lucene99 .Lucene99HnswVectorsFormat ;
1817import org .elasticsearch .common .util .BigArrays ;
3433 * vectors.
3534 */
3635public class PerFieldFormatSupplier {
37- public static final FeatureFlag USE_LUCENE101_POSTINGS_FORMAT = new FeatureFlag ("use_lucene101_postings_format " );
36+ public static final FeatureFlag USE_DEFAULT_LUCENE_POSTINGS_FORMAT = new FeatureFlag ("use_default_lucene_postings_format " );
3837
3938 private static final DocValuesFormat docValuesFormat = new Lucene90DocValuesFormat ();
4039 private static final KnnVectorsFormat knnVectorsFormat = new Lucene99HnswVectorsFormat ();
4140 private static final ES819TSDBDocValuesFormat tsdbDocValuesFormat = new ES819TSDBDocValuesFormat ();
4241 private static final ES812PostingsFormat es812PostingsFormat = new ES812PostingsFormat ();
43- private static final Lucene101PostingsFormat lucene101PostingsFormat = new Lucene101PostingsFormat ();
4442 private static final PostingsFormat completionPostingsFormat = PostingsFormat .forName ("Completion101" );
4543
4644 private final ES87BloomFilterPostingsFormat bloomFilterPostingsFormat ;
@@ -53,10 +51,10 @@ public PerFieldFormatSupplier(MapperService mapperService, BigArrays bigArrays)
5351 this .bloomFilterPostingsFormat = new ES87BloomFilterPostingsFormat (bigArrays , this ::internalGetPostingsFormatForField );
5452
5553 if (mapperService != null
56- && USE_LUCENE101_POSTINGS_FORMAT .isEnabled ()
54+ && USE_DEFAULT_LUCENE_POSTINGS_FORMAT .isEnabled ()
5755 && mapperService .getIndexSettings ().getIndexVersionCreated ().onOrAfter (IndexVersions .USE_LUCENE101_POSTINGS_FORMAT )
5856 && mapperService .getIndexSettings ().getMode () == IndexMode .STANDARD ) {
59- defaultPostingsFormat = lucene101PostingsFormat ;
57+ defaultPostingsFormat = Elasticsearch900Lucene101Codec . DEFAULT_POSTINGS_FORMAT ;
6058 } else {
6159 // our own posting format using PFOR
6260 defaultPostingsFormat = es812PostingsFormat ;
0 commit comments