1010package org .elasticsearch .index .codec ;
1111
1212import org .apache .lucene .codecs .PostingsFormat ;
13- import org .apache .lucene .codecs .lucene101 .Lucene101PostingsFormat ;
1413import org .elasticsearch .cluster .metadata .IndexMetadata ;
1514import org .elasticsearch .common .compress .CompressedXContent ;
1615import org .elasticsearch .common .settings .Settings ;
@@ -94,8 +93,7 @@ public void testUseBloomFilter() throws IOException {
9493 assertThat (perFieldMapperCodec .getPostingsFormatForField ("_id" ), instanceOf (ES87BloomFilterPostingsFormat .class ));
9594 assertThat (perFieldMapperCodec .useBloomFilter ("another_field" ), is (false ));
9695
97- Class <? extends PostingsFormat > expectedPostingsFormat = PerFieldFormatSupplier .USE_DEFAULT_LUCENE_POSTINGS_FORMAT .isEnabled ()
98- && timeSeries == false ? Lucene101PostingsFormat .class : ES812PostingsFormat .class ;
96+ Class <? extends PostingsFormat > expectedPostingsFormat = ES812PostingsFormat .class ;
9997 assertThat (perFieldMapperCodec .getPostingsFormatForField ("another_field" ), instanceOf (expectedPostingsFormat ));
10098 }
10199
@@ -110,9 +108,7 @@ public void testUseBloomFilterWithTimestampFieldEnabled() throws IOException {
110108 public void testUseBloomFilterWithTimestampFieldEnabled_noTimeSeriesMode () throws IOException {
111109 PerFieldFormatSupplier perFieldMapperCodec = createFormatSupplier (true , false , false );
112110 assertThat (perFieldMapperCodec .useBloomFilter ("_id" ), is (false ));
113- Class <? extends PostingsFormat > expectedPostingsFormat = PerFieldFormatSupplier .USE_DEFAULT_LUCENE_POSTINGS_FORMAT .isEnabled ()
114- ? Lucene101PostingsFormat .class
115- : ES812PostingsFormat .class ;
111+ Class <? extends PostingsFormat > expectedPostingsFormat = ES812PostingsFormat .class ;
116112 assertThat (perFieldMapperCodec .getPostingsFormatForField ("_id" ), instanceOf (expectedPostingsFormat ));
117113 }
118114
0 commit comments