From 0e02300ab61a50907ddbc49d05aca998c3d16c12 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 21 Dec 2023 13:59:41 -0800 Subject: [PATCH] updated lucene MAX_DIMENSIONS path (#607) (#785) Signed-off-by: Wang (cherry picked from commit 3c9b23ad4d6eed416d60f01777740cab3e04be3c) Co-authored-by: Joanne Wang <109310487+jowg-amazon@users.noreply.github.com> --- .../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;