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

Michael McCandless commented on LUCENE-8298:
--------------------------------------------

+1, very cool!  My favorite part of the patch is:
{quote}<b>just don't do it!</b>{quote}
:)

Curiously, Lucene long ago had the ability to undelete a document!  It was a 
method on {{IndexReader}} to undelete all documents (that had not been 
reclaimed by merges yet), and now we get that ability back, but in the right 
place ({{IndexWriter}}) and with control over which doc to un-soft-delete.

 

> Allow DocValues updates to reset a value
> ----------------------------------------
>
>                 Key: LUCENE-8298
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8298
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Simon Willnauer
>            Priority: Major
>             Fix For: 7.4, master (8.0)
>
>         Attachments: LUCENE-8298.patch, LUCENE-8298.patch
>
>
>  Today once a document has a value in a certain DV field this values
>     can only be changed but not removed. While resetting / removing a value
>     from a field is certainly a corner case it can be used to undelete a
>     soft-deleted document unless it's merged away.
>     This allows to rollback changes without rolling back to another 
> commitpoint
>     or trashing all uncommitted changes. In certain cenarios it can be used to
>     "repair" history of documents in distributed systems.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to