[
https://issues.apache.org/jira/browse/SOLR-12507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16522256#comment-16522256
]
David Smiley commented on SOLR-12507:
-------------------------------------
Thanks for appreciating my vigilance :)
I'm a little unsure if there may be a bug in CollectionMutator.modifyCollection
that checks {{if (message.get(prop) == null) {}} because might the message
contain an empty string value? I'm not sure. I suppose not if in
CollectionsHandler MODIFYCOLLECTION_OP you are replacing empty string with null.
> Modify collection API should support un-setting properties
> ----------------------------------------------------------
>
> Key: SOLR-12507
> URL: https://issues.apache.org/jira/browse/SOLR-12507
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Reporter: Shalin Shekhar Mangar
> Assignee: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: master (8.0), 7.5
>
> Attachments: SOLR-12507-null-values.patch, SOLR-12507.patch,
> SOLR-12507.patch
>
>
> Modify Collection API can only create/set values today. There should be a way
> to delete values using the API.
> Proposed syntax:
> {code}
> /admin/collections?action=MODIFYCOLLECTION&property.unset=policy&withCollection=
> {code}
> A blank parameter value will delete the property from the collection.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]