Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7925

Implement indexing from gzip format file

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.2.1
    • None
    • update

    Description

      This will support the update of gzipped format file of Json, Xml and CSV.
      The request path will use "update/compress/gzip" instead of "update" with "update.contentType" parameter and "Content-Type: application/gzip" as Header field.

      The following is sample request using curl command. (use not --data but --data-binary)

      curl "http://localhost:8080/solr/collection1/update/compress/gzip?update.contentType=application/json&commit=true" -H 'Content-Type: application/gzip' --data-binary @data.json.gz

      To activate this function need to add following request handler information to solrconfig.xml

      <requestHandler name="/update/compress/gzip" class="org.apache.solr.handler.CompressedUpdateRequestHandler">
      <lst name="defaults">
      <str name="stream.contentType">application/gzip</str>
      </lst>
      </requestHandler>

      Attachments

        1. SOLR-7925.patch
          25 kB
          Song Hyonwoo

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Song Hyonwoo Song Hyonwoo
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: