thecoop commented on code in PR #16682:
URL: https://github.com/apache/lucene/pull/16682#discussion_r4083659351
##########
lucene/backward-codecs/src/java/org/apache/lucene/backward_codecs/lucene102/Lucene102BinaryQuantizedVectorsFormat.java:
##########
@@ -141,4 +144,13 @@ public String toString() {
+ rawVectorFormat
+ ")";
}
+
+ /** The raw vectors are only read back to rescore. */
+ private static SegmentReadState rescoreOnly(SegmentReadState state) {
+ IOContext.FileOpenHint[] hints =
+ Stream.concat(state.context.hints().stream(),
Stream.of(NoReuseHint.INSTANCE))
Review Comment:
You can use `Sets.union` or something similar here
--
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]