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

Steve Rowe commented on SOLR-6155:
----------------------------------

bq. -1 ... we should fix the bug and return an error – better to be consistent 
with the other apis (like adding a field) then worry about backcompat for a 
nonsensical situation of adding the same copyField multiple times.

Fine by me.

> Multiple copy field directives are created in a mutable managed schema when 
> identical copy field directives are added
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6155
>                 URL: https://issues.apache.org/jira/browse/SOLR-6155
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>
> If I add the same copy field directive more than once, e.g. source=sku1 , 
> dest=sku2, then this directive will appear in the schema as many times as it 
> was added.
> It should only appear once.  I guess we could keep the current behavior of 
> not throwing an error when a copy field directive is added that already 
> exists in the schema, but rather than adding a duplicate directive, just have 
> a no-op.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to