[
https://issues.apache.org/jira/browse/SOLR-1780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132128#comment-18132128
]
Nick Shanin commented on SOLR-1780:
-----------------------------------
>From code reading against apache/main b73f03976fa,
>solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java:168-177
>rejects a document with more than one uniqueKey value whatever the overwrite
>setting, and only a missing uniqueKey is an error when overwrite is true. The
>multiple-value gap the ticket describes is therefore closed on main, and the
>missing-key case with overwrite=false is an explicit branch in the same
>method. Can this be closed as not a bug for the missing-key case, and fixed
>for the multiple-value case?
🤖 AI-generated 🤖
> existence of exactly one value for uniqueKey field is not checked when
> overwrite=false or allowDups=true
> --------------------------------------------------------------------------------------------------------
>
> Key: SOLR-1780
> URL: https://issues.apache.org/jira/browse/SOLR-1780
> Project: Solr
> Issue Type: Bug
> Reporter: Chris M. Hostetter
> Priority: Major
>
> As noted in SOLR-1695, DirectUpdateHandler(2) when a document is added, the
> uniqueKey field is only asserted to contain exactly one value if
> overwrite=true. If overwrite=false (or allowDups=true) then the uniqueKey
> field is not checked at all.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]