[ 
https://issues.apache.org/jira/browse/LUCENE-2655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919778#action_12919778
 ] 

Michael McCandless commented on LUCENE-2655:
--------------------------------------------

{quote}
With per DWPT deletes, we're maintaining a docidupto/limit per term/query. When 
the DWPT deletes are transferred to an IW deletes flushed, there isn't a way to 
globalize the docupto/limit value that's been maintained per DWPT. Today we 
globalize the docidupto/limit value because we're only flushing one segment at 
a time.
{quote}

I think we can still globalize?

The trick is it'd require doing the remapping in the same sync block that 
appends the new SegmentInfo into the SegmentInfos, right?  Because it's a that 
moment that the newly flushed segment is assigned its position w/ the rest of 
the segments.  And so, at that moment, it knows the sum of the maxDoc() of all 
prior segments, and it can globalize all of the docIDs mapped to the pending 
delete Term/Query?

> Get deletes working in the realtime branch
> ------------------------------------------
>
>                 Key: LUCENE-2655
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2655
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: Realtime Branch
>            Reporter: Jason Rutherglen
>             Fix For: Realtime Branch
>
>         Attachments: LUCENE-2655.patch
>
>
> Deletes don't work anymore, a patch here will fix this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to