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

Shalin Shekhar Mangar commented on SOLR-13320:
----------------------------------------------

Thanks [~dragonsinth] for explaining the use-case and the problem.

These are conflicts -- a document was not the version we wanted it to be. Here 
{{-1}} is just a special version that means the document should not have 
existed. So I think {{ignoreConflicts}} or {{ignoreVersionConflicts}} is more 
appropriate than {{ignoreDuplicates}}. Regardless of what we call the param, 
returning a list of docs IDs that were skipped would be nice to have as Gus 
noted. {{haltBatchOnError}} is definitely too broad and it is not always 
possible to recover from errors e.g. if there is malformed JSON in the middle 
of a batch.

> add a param ignoreDuplicates=true to updates to not overwrite existing docs
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-13320
>                 URL: https://issues.apache.org/jira/browse/SOLR-13320
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>            Priority: Major
>
> Updates should have an option to ignore duplicate documents and drop them if 
> an option  {{ignoreDuplicates=true}} is specified



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