Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 6.0
    • Component/s: None
    • Labels:
      None

      Description

      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

      #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
      

      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

        Attachments

        1. SOLR-6787.patch
          35 kB
          Noble Paul
        2. SOLR-6787.patch
          26 kB
          Noble Paul

          Issue Links

            Activity

              People

              • Assignee:
                noble.paul Noble Paul
                Reporter:
                noble.paul Noble Paul
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: