You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2014/12/08 07:03:12 UTC
[jira] [Commented] (SOLR-6787) API to manage blobs in Solr
[ https://issues.apache.org/jira/browse/SOLR-6787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14237482#comment-14237482 ]
Shawn Heisey commented on SOLR-6787:
------------------------------------
This sounds very cool.
I do have a couple of questions after looking at the patch, probably showing a lot of ignorance:
* Is this SolrCloud specific? If so, could it work on non-cloud setups? There seems to be ZK-specific code, and you mentioned collection, not core.
* I see a MAX_SZ constant set to 2MB, although it doesn't appear to be used anywhere in the patch. One of the jars that I use with Solr is the icu4j jar, which is over 9 MB. Would the the max size be configurable?
> API to manage blobs in Solr
> ----------------------------
>
> Key: SOLR-6787
> URL: https://issues.apache.org/jira/browse/SOLR-6787
> Project: Solr
> Issue Type: Sub-task
> Reporter: Noble Paul
> Assignee: Noble Paul
> Attachments: SOLR-6787.patch
>
>
> A special collection called .system needs to be created by the user to store/manage blobs. The schema/solrconfig of that collection need to be automatically supplied by the system so that there are no errors
> APIs need to be created to manage the content of that collection
> {code}
> #create a new jar or add a new version of a jar
> curl -X POST --data-binary @mycomponent.jar http://localhost:8983/solr/.system/blob/mycomponent
> # GET on the end point would give a list of jars and other details
> curl http://localhost:8983/solr/.system/blob
> # GET on the end point with jar name would give details of various versions of the available jars
> curl http://localhost:8983/solr/.system/blob/mycomponent
> # GET on the end point with jar name and version with a wt=filestream to get the actual file
> curl http://localhost:8983/solr/.system/blob/mycomponent/1?wt=filestream > mycomponent.1.jar
> # GET on the end point with jar name and wt=filestream to get the latest version of the file
> curl http://localhost:8983/solr/.system/blob/mycomponent?wt=filestream > mycomponent.jar
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org