iverase commented on code in PR #15732:
URL: https://github.com/apache/lucene/pull/15732#discussion_r2931651884


##########
lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene102/Lucene102BinaryFlatVectorsScorer.java:
##########
@@ -54,7 +55,11 @@ public Lucene102BinaryFlatVectorsScorer(FlatVectorsScorer 
nonQuantizedDelegate)
   public RandomVectorScorerSupplier getRandomVectorScorerSupplier(
       VectorSimilarityFunction similarityFunction, KnnVectorValues 
vectorValues)
       throws IOException {
-    throw new UnsupportedOperationException("Old codecs may only be used for 
reading");
+    if (vectorValues instanceof BinarizedByteVectorValues) {

Review Comment:
   Sure, we can just remove the casting.



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