prudhvigodithi commented on issue #14485: URL: https://github.com/apache/lucene/issues/14485#issuecomment-2980630462
Filtering out out of range docs prevents giant bit-sets, so we can only add the docs to the `DocIdSetBuilder` that are within the range of `LeafReaderContextPartition` this prevents each thread from storing doc IDs that belong to other partitions. Adding to this should we also update the `maxDoc` (`this.threshold = maxDoc >>> 7;`) with `LeafReaderContextPartition` size so the so the threshold scales correctly, this way the resulting bit-set are sized to the partition itself. -- 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