zihanx commented on code in PR #15803:
URL: https://github.com/apache/lucene/pull/15803#discussion_r2934000878


##########
lucene/core/src/java/org/apache/lucene/index/ReaderUtil.java:
##########
@@ -89,4 +89,57 @@ public static int subIndex(int n, List<LeafReaderContext> 
leaves) {
     }
     return hi;
   }
+
+  /**
+   * Partitions sorted global doc IDs by leaf.
+   *
+   * @param sortedDocIds global doc IDs, must be sorted ascending
+   * @param leaves the index reader's leaves
+   * @return array indexed by leaf ord, containing global doc IDs for that 
leaf (empty if no hits)

Review Comment:
   Added a sugar method.



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