Skip to content

Commit

Permalink
upgrade KnnGraphTester to 10.0 Codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sokolov committed Oct 18, 2024
1 parent 773fd7a commit 19662b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/knn/KnnGraphTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.KnnVectorsFormat;
import org.apache.lucene.codecs.KnnVectorsReader;
import org.apache.lucene.codecs.lucene912.Lucene912Codec;
import org.apache.lucene.codecs.lucene100.Lucene100Codec;
import org.apache.lucene.codecs.lucene99.Lucene99HnswScalarQuantizedVectorsFormat;
import org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat;
import org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsReader;
Expand Down Expand Up @@ -1023,7 +1023,7 @@ private void log(String msg, Object... args) {

static Codec getCodec(int maxConn, int beamWidth, ExecutorService exec, int numMergeWorker, boolean quantize, int quantizeBits, boolean quantizeCompress) {
if (exec == null) {
return new Lucene912Codec() {
return new Lucene100Codec() {
@Override
public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
return quantize ?
Expand All @@ -1032,7 +1032,7 @@ public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
}
};
} else {
return new Lucene912Codec() {
return new Lucene100Codec() {
@Override
public KnnVectorsFormat getKnnVectorsFormatForField(String field) {
return quantize ?
Expand Down

0 comments on commit 19662b2

Please sign in to comment.