Skip to content

Commit 162d257

Browse files
Fix compile issue with QUERY_BITS
Copy this value from Lucene102BinaryQuantizedVectorsFormat where it became package private
1 parent a7996f8 commit 162d257

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/diskbbq/ES920DiskBBQVectorsReader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import java.io.IOException;
2828
import java.util.Map;
2929

30-
import static org.apache.lucene.codecs.lucene102.Lucene102BinaryQuantizedVectorsFormat.QUERY_BITS;
3130
import static org.apache.lucene.index.VectorSimilarityFunction.COSINE;
3231
import static org.elasticsearch.index.codec.vectors.BQVectorUtils.discretize;
3332
import static org.elasticsearch.index.codec.vectors.OptimizedScalarQuantizer.DEFAULT_LAMBDA;
@@ -40,6 +39,9 @@
4039
*/
4140
public class ES920DiskBBQVectorsReader extends IVFVectorsReader {
4241

42+
// QUERY_BITS value copied from Lucene102BinaryQuantizedVectorsFormat where it became package private
43+
private static final byte QUERY_BITS = 4;
44+
4345
ES920DiskBBQVectorsReader(SegmentReadState state, GenericFlatVectorReaders.LoadFlatVectorsReader getFormatReader) throws IOException {
4446
super(state, getFormatReader);
4547
}

0 commit comments

Comments
 (0)