File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
server/src/main/java/org/elasticsearch/index/codec/vectors Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1313import org .apache .lucene .codecs .KnnVectorsFormat ;
1414import org .apache .lucene .codecs .KnnVectorsReader ;
1515import org .apache .lucene .codecs .KnnVectorsWriter ;
16- import org .apache .lucene .codecs .hnsw .DefaultFlatVectorScorer ;
16+ import org .apache .lucene .codecs .hnsw .FlatVectorScorerUtil ;
1717import org .apache .lucene .codecs .hnsw .FlatVectorsFormat ;
1818import org .apache .lucene .codecs .hnsw .FlatVectorsReader ;
1919import org .apache .lucene .codecs .hnsw .FlatVectorsWriter ;
@@ -40,7 +40,7 @@ public class ES813FlatVectorFormat extends KnnVectorsFormat {
4040
4141 static final String NAME = "ES813FlatVectorFormat" ;
4242
43- private static final FlatVectorsFormat format = new Lucene99FlatVectorsFormat (DefaultFlatVectorScorer . INSTANCE );
43+ private static final FlatVectorsFormat format = new Lucene99FlatVectorsFormat (FlatVectorScorerUtil . getLucene99FlatVectorsScorer () );
4444
4545 /**
4646 * Sole constructor
Original file line number Diff line number Diff line change 99
1010package org .elasticsearch .index .codec .vectors ;
1111
12- import org .apache .lucene .codecs .hnsw .DefaultFlatVectorScorer ;
1312import org .apache .lucene .codecs .hnsw .FlatFieldVectorsWriter ;
13+ import org .apache .lucene .codecs .hnsw .FlatVectorScorerUtil ;
1414import org .apache .lucene .codecs .hnsw .FlatVectorsFormat ;
1515import org .apache .lucene .codecs .hnsw .FlatVectorsReader ;
1616import org .apache .lucene .codecs .hnsw .FlatVectorsScorer ;
@@ -48,10 +48,12 @@ public class ES814ScalarQuantizedVectorsFormat extends FlatVectorsFormat {
4848 static final String NAME = "ES814ScalarQuantizedVectorsFormat" ;
4949 private static final int ALLOWED_BITS = (1 << 8 ) | (1 << 7 ) | (1 << 4 );
5050
51- private static final FlatVectorsFormat rawVectorFormat = new Lucene99FlatVectorsFormat (DefaultFlatVectorScorer .INSTANCE );
51+ private static final FlatVectorsFormat rawVectorFormat = new Lucene99FlatVectorsFormat (
52+ FlatVectorScorerUtil .getLucene99FlatVectorsScorer ()
53+ );
5254
5355 static final FlatVectorsScorer flatVectorScorer = new ESFlatVectorsScorer (
54- new ScalarQuantizedVectorScorer (DefaultFlatVectorScorer . INSTANCE )
56+ new ScalarQuantizedVectorScorer (FlatVectorScorerUtil . getLucene99FlatVectorsScorer () )
5557 );
5658
5759 /** The minimum confidence interval */
You can’t perform that action at this time.
0 commit comments