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
Attachments
Issue Links
- is duplicated by
-
SOLR-10981 Allow update to load gzip files
- Closed