[ https://issues.apache.org/jira/browse/SOLR-12389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16522724#comment-16522724 ]
Cassandra Targett commented on SOLR-12389: ------------------------------------------ [~noble.paul] - this issue could be resolved, correct? Fixed for 7.4? > Support nested properties in cluster props > ------------------------------------------ > > Key: SOLR-12389 > URL: https://issues.apache.org/jira/browse/SOLR-12389 > Project: Solr > Issue Type: Sub-task > Security Level: Public(Default Security Level. Issues are Public) > Environment: cluster props API does not support nested objects . > > > Reporter: Noble Paul > Assignee: Noble Paul > Priority: Major > > A new command is added to V2 endpoint to set deeply nested objects > example 1: > {code} > $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' > -d ' > { "set-obj-property": { > "collectionDefaults" :{ > "numShards": 3, > "nrtreplicas": "2 , > "tlogReplicas":3, > "pullReplicas" : 2 > }}}' > {code} > example 2: > unset the value of {{numShards}} > {code} > $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' > -d ' > { "set-obj-property": { > "collectionDefaults" :{ > "numShards": null > }}}' > {code} > example 2: > unset the value of {{numShards}} > example 3: > unset the entire {{collectionDefaults}} and set another value for another key > all in one command > {code} > $ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' > -d ' > { "set-obj-property": { > "autoAddReplicas" : true, > "collectionDefaults" :null}}' > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org