msfroh commented on issue #15226:
URL: https://github.com/apache/lucene/issues/15226#issuecomment-3407726469

   Hey @jainankitk -- I brought this up on the dev list last year here: 
https://lists.apache.org/thread/jxczhgn5loqwn10xrb30k2hg0jrbovcs
   
   As Adrien called out in that thread, you can use `nextClearBit()` to step 
through the deleted docs, but as I called out, that's `O(maxDoc)`. I had the 
idea of storing an array of doc IDs, but that would require a binary search to 
do random lookups. Uwe had a nice idea of using a `SparseFixedBitSet` if the 
number of deletes is small, which I think would give us the best of both worlds 
(`O(1)` random access and `O(deletedDocs)` traversal).


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

Reply via email to