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

Michael Schumann commented on SOLR-4319:
----------------------------------------

This would be nice. We achieved this behavior by always doing a "remove" before 
an "add"; if no value exists the remove has no effect. 

> New atomic update operation: AddToSet
> -------------------------------------
>
>                 Key: SOLR-4319
>                 URL: https://issues.apache.org/jira/browse/SOLR-4319
>             Project: Solr
>          Issue Type: Wish
>          Components: Schema and Analysis
>            Reporter: Mikael Koskinen
>              Labels: atomic
>
> Currently Solr supports the following atomic operations:
> add, set, inc
> It would be great to have operation "addToSet". This would be useful in 
> situations where a document has a multivalued field (like category) and I 
> want to add a new value to list if it doesn't already exists. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to