stefanvodita opened a new pull request, #11815:
URL: https://github.com/apache/lucene/pull/11815

   ### Description
   
   Changes made to support deletes in `IndexRearranger`:
   1. Add `isDeleted(LeafReader reader, int idx)` in document selectors, which 
returns true if the document found at index `idx` in the leaf reader was marked 
for deletion in the original index.
   2. Record all docs in the `DocumentSelector` (not just live ones).
   3. When rearranging, in `addOneSegment`, add all docs that belong in the 
segment and then delete the ones that were originally marked for deletion.
   
   ### Testing
   The new test class is copied from `TestIndexRearranger` with modifications 
for deleting documents in the original index and testing that they are still 
present and deleted in the rearranged index. In a subsequent revision, this 
file would be merged into `TestIndexRearranger`.


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