[
https://issues.apache.org/jira/browse/SOLR-3862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steven Bower updated SOLR-3862:
-------------------------------
Attachment: SOLR-3862-2.patch
This patch works in a slightly more restrictive way. It requires an entire
field value to match the pattern specified for it to be removed. Also uses a
precompiled pattern in order to prevent recompilation for each field value (esp
bad with lots of field values). It also renames the option "remove" per my
previous comment.
I think it would be useful to add a "replace" option that allows for arbitrary
replacement of text in a field (or removal if it results in an empty string,
like the initial patch here). The only issue is how would one specify the
"replacement" text as part of the update.
> 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-2.patch, 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]