You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2022/06/22 19:09:00 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=17557622#comment-17557622 ] 

Jason Gerlowski commented on SOLR-6787:
---------------------------------------

Hey [~noble.paul] - commit 8d7681e7 from this ticket added a "NotFoundRequestHandler" to Solr (see [here|https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/NotFoundRequestHandler.java]).  AFAICT, this handler is never used by tests, or production code, or mentioned as an option for users in the ref-guide.  Do you remember why you added it, and whether it still serves a purpose in Solr today?

> 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
>            Priority: Major
>             Fix For: 5.0, 6.0
>
>         Attachments: SOLR-6787.patch, 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 your .system collection first
> http://localhost:8983/solr/admin/collections?action=CREATE&name=.system&replicationFactor=2
> #The config for this collection is automatically created . numShards for this collection is hardcoded to 1
> #create a new jar or add a new version of a jar
> curl -X POST -H 'Content-Type: application/octet-stream' --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}
> Please note that the jars are never deleted. a new version is added to the system everytime a new jar is posted for the name. You must use the standard delete commands to delete the old entries



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org