[ 
https://issues.apache.org/jira/browse/SOLR-6736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Varun Rajput updated SOLR-6736:
-------------------------------
    Attachment: SOLR-6736.patch

Hey [~noble.paul] and [~anshumg], I was able to get all the suggestions 
incorporated into the handler and have attached another patch. With the 
changes, we can do the following:

1. POST a zipped file consisting of solr configuration files/folders
Example:
curl -X POST -H 'Content-Type: application/octet-stream' --data-binary 
@compressed.zip 
"http://localhost:8983/solr/admin/zkconfig?action=postconfig&postconfig.name=testconfig";

2. POST a single file into a configuration
Example:
curl -X POST -H 'Content-Type: text/plain' --data-binary @testfile.txt 
"http://localhost:8983/solr/admin/zkconfig?action=postfile&postfile.configname=testconfig&postfile.filename=testfile.txt";

3. Link an existing configuration in zookeeper to an existing collection
Example:
http://localhost:8983/solr/admin/zkconfig?action=linkconfig&linkconfig.name=testconfig&linkconfig.collection=testcollection

4. Delete a configuration from zookeeper
Example:
http://localhost:8983/solr/admin/zkconfig?action=delete&delete.configname=testconfig

5. Delete a file/folder from a configuration in zookeeper
Example:
http://localhost:8983/solr/admin/zkconfig?action=delete&delete.configname=testconfig&delete.path=lang/stopwords.txt

> A collections-like request handler to manage solr configurations on zookeeper
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-6736
>                 URL: https://issues.apache.org/jira/browse/SOLR-6736
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>            Reporter: Varun Rajput
>            Assignee: Anshum Gupta
>            Priority: Minor
>             Fix For: 5.0, Trunk
>
>         Attachments: SOLR-6736.patch, SOLR-6736.patch
>
>
> Managing Solr configuration files on zookeeper becomes cumbersome while using 
> solr in cloud mode, especially while trying out changes in the 
> configurations. 
> It will be great if there is a request handler that can provide an API to 
> manage the configurations similar to the collections handler that would allow 
> actions like uploading new configurations, linking them to a collection, 
> deleting configurations, etc.
> example : 
> {code}
> #use the following command to upload a new configset called mynewconf. This 
> will fail if there is alredy a conf called 'mynewconf'. The file could be a 
> jar , zip or a tar file which contains all the files for the this conf.
> curl -X POST -H 'Content-Type: application/octet-stream' --data-binary 
> @testconf.zip http://localhost:8983/solr/admin/configs/mynewconf
> {code}
> A GET to http://localhost:8983/solr/admin/configs will give a list of configs 
> available
> A GET to http://localhost:8983/solr/admin/configs/mynewconf would give the 
> list of files in mynewconf



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to