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

David Smiley commented on LUCENE-8200:
--------------------------------------

Cool feature!  I like the name "softUpdateDocuments" for this.  Maybe the 
CHANGES.txt entry should make reference to the particular method so user's can 
easily get to further explanatory javadocs.

I suggest the javadocs more explicitly give the user an idea of what this might 
be used for, since it seems a bit abstract as-is.  For example:
bq. One use of this API is to retain older versions of documents instead of 
replacing them. The existing documents can be updated to reflect they are no 
longer current while atomically adding new documents at the same time.

The patch did not apply for me {{git apply ../patches/LUCENE-8200.patch}} ... 
probably because your GH repository does not have the same git lineage as the 
official ASF repo that is mirrored/forked elsewhere.

>  Allow doc-values to be updated atomically together with a document
> -------------------------------------------------------------------
>
>                 Key: LUCENE-8200
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8200
>             Project: Lucene - Core
>          Issue Type: Improvement
>    Affects Versions: 7.4, master (8.0)
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Major
>         Attachments: LUCENE-8200.patch, LUCENE-8200.patch
>
>
> Today we can only update a document by deleting all previously indexed 
> documents for the given term. In some cases like when deletes are not `final` 
> in the way that documents that are marked as deleted should not be merged 
> away a `soft-delete` is needed which is possible when doc-values updates can 
> be done atomically just like delete and add in updateDocument(s)
>     
> This change introduces such a soft update that reuses all code paths from 
> deletes to update all previously updated documents for a given term instead 
> of marking it as deleted. This is a spinnoff from LUCENE-8198



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