Skip to content

Commit

Permalink
updated lucene MAX_DIMENSIONS path (#607) (#785)
Browse files Browse the repository at this point in the history
Signed-off-by: Wang <[email protected]>
(cherry picked from commit 3c9b23a)

Co-authored-by: Joanne Wang <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and jowg-amazon authored Dec 21, 2023
1 parent 9ddea79 commit 0e02300
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0e02300

Please sign in to comment.