[ 
https://issues.apache.org/jira/browse/SOLR-14907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17216997#comment-17216997
 ] 

Houston Putman commented on SOLR-14907:
---------------------------------------

bq. I suppose you are trying to map overwrite=true/false to the restful action

Yeah that's the idea.

After reading through that though, I think you are right that PUT works best 
overall for both create & update. And users can override the "overwrite=false" 
if they so desire. Slightly awkward that the default behavior is different 
between v1 and v2, but it does make the most since with the REST API.

I'll make those changes real quick.

> Support single file upload/overwrite in configSet API
> -----------------------------------------------------
>
>                 Key: SOLR-14907
>                 URL: https://issues.apache.org/jira/browse/SOLR-14907
>             Project: Solr
>          Issue Type: Improvement
>          Components: configset-api
>            Reporter: Houston Putman
>            Assignee: Houston Putman
>            Priority: Major
>             Fix For: 8.7
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> After SOLR-10391 was implemented, users are now able to overwrite existing 
> configSets using the configSet API. However the files uploaded are still 
> required to be zipped and indexed from the base configSet path in ZK. Users 
> might want to just update a single file, such as a synonyms list, and not 
> have to tar it up first.
> The proposed solution is to add parameters to the UPLOAD configSet action, to 
> allow this single-file use case. This would utilize the protections already 
> provided by the API, such as maintaining the trustiness of configSets being 
> modified.
> This feature is part of the solution to replace managed resources, which is 
> planned to be deprecated and removed by 9.0 (SOLR-14766).
> The following APIs are being proposed:
> V1:
> Adding to the configSet upload one urlParam, filePath:
> "http://localhost:8983/solr/admin/configs?action=UPLOAD&name=myConfigSet&filePath=solrconfig.xml&overwrite=true";
> V2:
>  * Creating a configSet:
>  ** POST - /cluster/configs/\{name}
>  * Updating a configSet:
>  ** PUT - /cluster/configs/\{name}
>  * Creating a file in a configSet:
>  ** POST - /cluster/configs/\{name}/files/\{filename}
>  * Updating a file in a configSet:
>  ** PUT - /cluster/configs/\{name}/files/\{filename}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to