javanna commented on PR #12374:
URL: https://github.com/apache/lucene/pull/12374#issuecomment-1593783661

   hi @sohami thanks for opening this PR! I have been considering a different 
approach, in the attempt of not adding additional constructor to IndexSearcher, 
as it already has quite some.
   
   I am thinking that pre-computing the slices in the constructor may not be so 
important. How about removing that and computing the slices each time they are 
retrieved? There's only three methods where that is used between searchAfter 
and search. If needed, subclasses can still pre-compute and cache the slices if 
that's considered important. This way, subclasses are free to override how 
slices are computed, and the change is a little less invasive.


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to