From e03b5744bc2a9ab6e2c5f09d04845bb3beb11df7 Mon Sep 17 00:00:00 2001 From: John Mazanec Date: Thu, 17 Mar 2022 15:41:55 -0700 Subject: [PATCH] Switch default to new Signed-off-by: John Mazanec --- .../knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java index 151bb20ce..cd8362cf2 100644 --- a/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java +++ b/src/main/java/org/opensearch/knn/index/codec/KNN80Codec/KNN80DocValuesFormat.java @@ -8,6 +8,7 @@ import org.apache.lucene.codecs.DocValuesConsumer; import org.apache.lucene.codecs.DocValuesFormat; import org.apache.lucene.codecs.DocValuesProducer; +import org.apache.lucene.codecs.lucene80.Lucene80DocValuesFormat; import org.apache.lucene.index.SegmentReadState; import org.apache.lucene.index.SegmentWriteState; @@ -20,8 +21,7 @@ public class KNN80DocValuesFormat extends DocValuesFormat { private final DocValuesFormat delegate; public KNN80DocValuesFormat() { - super(KNN80Codec.LUCENE_80); - this.delegate = DocValuesFormat.forName(KNN80Codec.LUCENE_80); + this(new Lucene80DocValuesFormat()); } /**