[
https://issues.apache.org/jira/browse/SOLR-12389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Noble Paul updated SOLR-12389:
------------------------------
Description:
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}
> 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: [email protected]
For additional commands, e-mail: [email protected]