jainankitk commented on issue #14485:
URL: https://github.com/apache/lucene/issues/14485#issuecomment-2802944756

   Thinking bit more, this selectivity approach won't work as the docId arrive 
out of order and only sorted during `DocIdSetIterator#build`. Although, with 
the introduction of `LeafReaderContextPartition`, passing 
`context.reader().maxDoc()` into the `DocIdSetIterator` is not correct. Should 
provide both `minDocId` & `maxDocId` for:
   
   * Correctly computing the `DocIdSetIterator#threshold`
   * Use `minDocId` as offset for reducing the memory consumed by 
`DocIdSetIterator`


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