Details
Description
A new command is added to V2 endpoint to set deeply nested objects
example 1:
$ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d ' { "set-obj-property": { "collectionDefaults" :{ "numShards": 3, "nrtreplicas": "2 , "tlogReplicas":3, "pullReplicas" : 2 }}}'
example 2:
unset the value of numShards
$ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d ' { "set-obj-property": { "collectionDefaults" :{ "numShards": null }}}'
example 2:
unset the value of numShards
example 3:
unset the entire collectionDefaults and set another value for another key all in one command
$ curl http://localhost:8983/api/cluster -H 'Content-type: application/json' -d ' { "set-obj-property": { "autoAddReplicas" : true, "collectionDefaults" :null}}'