[ https://issues.apache.org/jira/browse/LUCENE-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727610#action_12727610 ]
Michael McCandless commented on LUCENE-1721: -------------------------------------------- Right, a merge can commit at any time. Since a writer can change docIDs at any time, it's never safe for something outside to hold onto docIDs; this is what's good about delete by Term and by Query: they are "late binding", ie, only resolve to docID at the exact moment deletion is done. > IndexWriter to allow deletion by doc ids > ---------------------------------------- > > Key: LUCENE-1721 > URL: https://issues.apache.org/jira/browse/LUCENE-1721 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Shay Banon > > It would be great if IndexWriter would allow for deletion by doc ids as well. > It makes sense for cases where a "query" has been executed beforehand, and > later, that query needs to be applied in order to delete the matched > documents. > More information here: > http://www.nabble.com/Delete-by-docId-in-IndexWriter-td24239930.html -- 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org