LantaoJin commented on PR #16830: URL: https://github.com/apache/lucene/pull/16830#issuecomment-7149865153
Yes, nothing in Lucene itself is affected: searches over old indexes never hit the cache, and only the test RW codecs can still build graphs in this format. I still think it's worth fixing because the format isn't only read. OpenSearch k-NN, on Lucene 10.5, still writes it for 7-bit scalar quantization with its own copy of the writer (`org.apache.lucene.backward_codecs.lucene99.Lucene99ScalarQuantizedVectorsWriter` in opensearch-project/k-NN), and its merges build the graph, link repair included, through this class and `Lucene99ScalarQuantizedVectorScorer`. It only uses 7 bits, so it doesn't hit this bug today, but this is code current releases still use for writing, not just history. That said, it's a small latent fix in a backward codec, and I'm fine closing it if you'd rather not take it. The same cache pattern is in the Lucene104 off-heap quantized values, where a new caller that reads the corrective terms without calling `vectorValue()` first would get wrong scores. I can open a separate PR for that. -- 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]
