kaivalnp commented on code in PR #17013: URL: https://github.com/apache/lucene/pull/17013#discussion_r4569280016
########## lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104ScalarQuantizedVectorsReader.java: ########## @@ -83,13 +84,13 @@ public class Lucene104ScalarQuantizedVectorsReader extends FlatVectorsReader private final Map<String, FieldEntry> fields; private final IndexInput quantizedVectorData; private final FlatVectorsReader rawVectorsReader; - private final Lucene104ScalarQuantizedVectorScorer vectorScorer; + private final AsymmetricFlatVectorsScorer vectorScorer; Review Comment: We needed a `FlatVectorScorer` that had one additional functionality specific to `Lucene104ScalarQuantizedVectorScorer` (i.e. asymmetric scoring) so I created a new interface. > Didn't we have asymmetry before (ie different wuantization of query and documents)? I don't think we had asymmetric quantization in the prior Lucene99 scalar quantized format. I took inspiration for the name from #15257 (initial attempt by @mccullocht to do off-heap scoring). However I realize that the new optimized scorer is actually a subclass of the original one, and we can replace `AsymmetricFlatVectorsScorer` with `Lucene104ScalarQuantizedVectorScorer` everywhere.. I'll update in the next commit, which I think makes the hierarchy cleaner, thanks! -- 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]
