12
12
import org .apache .lucene .codecs .DocValuesFormat ;
13
13
import org .apache .lucene .codecs .KnnVectorsFormat ;
14
14
import org .apache .lucene .codecs .PostingsFormat ;
15
- import org .apache .lucene .codecs .lucene101 .Lucene101PostingsFormat ;
16
15
import org .apache .lucene .codecs .lucene90 .Lucene90DocValuesFormat ;
17
16
import org .apache .lucene .codecs .lucene99 .Lucene99HnswVectorsFormat ;
18
17
import org .elasticsearch .common .util .BigArrays ;
34
33
* vectors.
35
34
*/
36
35
public 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 " );
38
37
39
38
private static final DocValuesFormat docValuesFormat = new Lucene90DocValuesFormat ();
40
39
private static final KnnVectorsFormat knnVectorsFormat = new Lucene99HnswVectorsFormat ();
41
40
private static final ES819TSDBDocValuesFormat tsdbDocValuesFormat = new ES819TSDBDocValuesFormat ();
42
41
private static final ES812PostingsFormat es812PostingsFormat = new ES812PostingsFormat ();
43
- private static final Lucene101PostingsFormat lucene101PostingsFormat = new Lucene101PostingsFormat ();
44
42
private static final PostingsFormat completionPostingsFormat = PostingsFormat .forName ("Completion101" );
45
43
46
44
private final ES87BloomFilterPostingsFormat bloomFilterPostingsFormat ;
@@ -53,10 +51,10 @@ public PerFieldFormatSupplier(MapperService mapperService, BigArrays bigArrays)
53
51
this .bloomFilterPostingsFormat = new ES87BloomFilterPostingsFormat (bigArrays , this ::internalGetPostingsFormatForField );
54
52
55
53
if (mapperService != null
56
- && USE_LUCENE101_POSTINGS_FORMAT .isEnabled ()
54
+ && USE_DEFAULT_LUCENE_POSTINGS_FORMAT .isEnabled ()
57
55
&& mapperService .getIndexSettings ().getIndexVersionCreated ().onOrAfter (IndexVersions .USE_LUCENE101_POSTINGS_FORMAT )
58
56
&& mapperService .getIndexSettings ().getMode () == IndexMode .STANDARD ) {
59
- defaultPostingsFormat = lucene101PostingsFormat ;
57
+ defaultPostingsFormat = Elasticsearch900Lucene101Codec . DEFAULT_POSTINGS_FORMAT ;
60
58
} else {
61
59
// our own posting format using PFOR
62
60
defaultPostingsFormat = es812PostingsFormat ;
0 commit comments