From 3403c643cbc8b8b19e2edef51b4aacf217880188 Mon Sep 17 00:00:00 2001 From: Wang Date: Tue, 19 Sep 2023 16:35:31 -0700 Subject: [PATCH] updated lucene MAX_DIMENSIONS path Signed-off-by: Wang --- .../correlation/index/mapper/LuceneFieldMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/securityanalytics/correlation/index/mapper/LuceneFieldMapper.java b/src/main/java/org/opensearch/securityanalytics/correlation/index/mapper/LuceneFieldMapper.java index 11620addc..ed6731e57 100644 --- a/src/main/java/org/opensearch/securityanalytics/correlation/index/mapper/LuceneFieldMapper.java +++ b/src/main/java/org/opensearch/securityanalytics/correlation/index/mapper/LuceneFieldMapper.java @@ -17,11 +17,11 @@ import java.io.IOException; import java.util.Optional; -import static org.apache.lucene.index.VectorValues.MAX_DIMENSIONS; +import static org.apache.lucene.codecs.KnnVectorsFormat.DEFAULT_MAX_DIMENSIONS; public class LuceneFieldMapper extends CorrelationVectorFieldMapper { - private static final int LUCENE_MAX_DIMENSION = MAX_DIMENSIONS; + private static final int LUCENE_MAX_DIMENSION = DEFAULT_MAX_DIMENSIONS; private final FieldType vectorFieldType;