Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.4, 8.0
    • None
    • None
    • cluster props API does not support nested objects . 

       

       

    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}}'
      

      Attachments

        Activity

          People

            noble.paul Noble Paul
            noble.paul Noble Paul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: