mikepapadim commented on PR #16855:
URL: https://github.com/apache/lucene/pull/16855#issuecomment-6337056043
> > Whole-segment searches pass NO_MORE_DOCS as max
>
> I think this is probably the bit that needs fixing?
Thanks for the taking a look , i think thatss the root cause, but it looks
like `createForEntireSegment` and `IndexSearcher.search` pass `NO_MORE_DOCS` on
purpose.
Also, `BulkScorer` do not require max <= maxDoc, so other callers can may
hit the same path (not sure if this holds).
Happy to change those call sites to pass maxDoc as well, and keep the clamp
here as a safeguard.
Does this make sense as long term solution?
--
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]