Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5626

Would like to be able to 'upconfig' and 'linkconfig' via collections api

    Details

      Description

      Right now, the collections API isn't self contained - to do server administration, you still have to externally use the zkCli.sh scripts to upload configs.

      It would be really nice to be able to issue a collections API call to upload a configuration and link that config. I realize that this providing a direct layer into Zk, but the benefit is that at that point - Zk could be completely hidden and behind the scenes - and only exposed to Solr itself.

      I would suggest that it take a file upload, examples:

      /solr/admin/collections
      action=UPCONFIG
      configName=whatevername
      configSolrHome=whateverpath
      configContent=fileUpload/multipart
      configContentType=typeOfUpload(mimetype?)

      /solr/admin/collections
      action=LINKCONFIG
      collection=collname
      configName=whatevername

      You could even extend the CREATE operation/api to take configContent and configContentType file upload, and dynamically create a configName. Then creating a collection becomes a one-shot API call with no outside dependencies.

      I would suggest that the zip/tar content be specified as rooted at the based of the config dir.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shalinmangar Shalin Shekhar Mangar
                Reporter:
                nneul Nathan Neulinger
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: