Pranshu-S commented on code in PR #16710:
URL: https://github.com/apache/lucene/pull/16710#discussion_r4209533420


##########
lucene/sandbox/src/java/org/apache/lucene/sandbox/codecs/dedup/DedupScalarQuantizedVectorsReader.java:
##########
@@ -462,9 +488,19 @@ public CloseableRandomVectorScorerSupplier 
getRandomVectorScorerSupplierForMerge
 
     // Asymmetric encodings compare query-encoded vectors against the stored 
doc-encoded vectors.
     // Write a query-encoded record per distinct vector of the group into a 
temporary file; both
-    // sides then resolve through the shared fieldOrdToGroupOrd translation.
-    DedupVectorValues.FloatImpl rawValues = getRawFloatVectorValues(entry);
-    FloatVectorValues groupView = rawValues.getGroupView();
+    // sides then resolve through the shared fieldOrdToGroupOrd translation. 
The group's raw vectors
+    // are read directly from the group view (indexed by group ordinal, not 
field ordinal) as
+    // float[] (FLOAT16 groups are inflated from short[]).
+    FloatVectorValues floatVectorValues;

Review Comment:
   Not really, the older implementation was a bit twisted with consumers. This 
one with the non-casted way of doing things reads well and is easier for any 
reader to understand. What do you think? Okay to go back to older state but I 
think this reads well.



-- 
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]

Reply via email to