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

Steven Bower commented on SOLR-3862:
------------------------------------

Actually maybe I'm understanding this feature slightly differently. Is the 
intent to be able to remove patterns from field values or is the goal to be 
able to remove entire values? This patch kind of does both, however I think 
that for the case where you might have many field values per field or a large 
list of values to remove it may be more efficient to forgo the regex stuff and 
do straight "remove". Additionally for the regex case maybe having a 
"replaceAll" type function that would let you replace a regex within a field 
value would be more generalized functionality (and then remove the value if the 
new string is empty).

some thoughts.. I will post a more tightened up "remove" patch tomorrow..
                
> 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
>         Attachments: SOLR-3862.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to