cpoerschke commented on code in PR #4195:
URL: https://github.com/apache/solr/pull/4195#discussion_r2966896209
##########
solr/core/src/java/org/apache/solr/schema/BinaryQuantizedDenseVectorField.java:
##########
@@ -17,12 +17,14 @@
package org.apache.solr.schema;
import org.apache.lucene.codecs.KnnVectorsFormat;
-import
org.apache.lucene.codecs.lucene102.Lucene102HnswBinaryQuantizedVectorsFormat;
+import
org.apache.lucene.codecs.lucene104.Lucene104HnswScalarQuantizedVectorsFormat;
+import
org.apache.lucene.codecs.lucene104.Lucene104ScalarQuantizedVectorsFormat.ScalarEncoding;
public class BinaryQuantizedDenseVectorField extends DenseVectorField {
@Override
public KnnVectorsFormat buildKnnVectorsFormat() {
- return new Lucene102HnswBinaryQuantizedVectorsFormat(getHnswM(),
getHnswEfConstruction());
+ return new Lucene104HnswScalarQuantizedVectorsFormat(
+ ScalarEncoding.SINGLE_BIT_QUERY_NIBBLE, getHnswM(),
getHnswEfConstruction());
Review Comment:
ref. https://github.com/apache/lucene/pull/15353
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]