epotyom commented on code in PR #16952:
URL: https://github.com/apache/lucene/pull/16952#discussion_r4720576891
##########
lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java:
##########
@@ -1074,8 +1074,7 @@ private LeafReaderContextPartition(
/** Creates a partition of the provided leaf context that targets the
entire segment */
public static LeafReaderContextPartition
createForEntireSegment(LeafReaderContext ctx) {
- return new LeafReaderContextPartition(
- ctx, 0, DocIdSetIterator.NO_MORE_DOCS, ctx.reader().maxDoc());
+ return new LeafReaderContextPartition(ctx, 0, ctx.reader().maxDoc(),
ctx.reader().maxDoc());
Review Comment:
While we are setting max doc to the actual max doc, does it make sense to
change min doc from 0 to actual min doc as well (here and in other places where
min doc is available)?
--
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]