lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Musil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3862) add "remove" as update option for atomically removing a value from a multivalued field
Date Fri, 30 Nov 2012 22:08:00 GMT

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

Jim Musil commented on SOLR-3862:
---------------------------------

So, I needed to hack this together to suit my needs. I'm not sure if anyone else would find
this useful, but I've added a "removeAll" option for atomic updates. It just uses String.removeAll()
on each value, so supplying regex as the value will work. I've never submitted a patch before,
so please forgive me if I've done this wrong.
                
> add "remove" as update option for atomically removing a value from a multivalued field
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-3862
>                 URL: https://issues.apache.org/jira/browse/SOLR-3862
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrCloud
>    Affects Versions: 4.0-BETA
>            Reporter: Jim Musil
>
> Currently you can atomically "add" a value to a multivalued field. It would be useful
to be able to "remove" a value from a multivalued field. 
> When you "set" a multivalued field to null, it destroys all values.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message