Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4, 8.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: