[ 
https://issues.apache.org/jira/browse/SOLR-7925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15122333#comment-15122333
 ] 

Jan Høydahl commented on SOLR-7925:
-----------------------------------

Thanks for clarifying Uwe!

Could not find any reference to request body compression in the HTTP 2.0 spec, 
only request headers...
However, httpd's mod_deflate also provides a filter to decompress compressed 
requests: "The mod_deflate module also provides a filter for decompressing a 
gzip compressed request body . In order to activate this feature you have to 
insert the DEFLATE filter into the input filter chain", see 
https://httpd.apache.org/docs/2.4/mod/mod_deflate.html. 

Guess that's why I started looking for a Jetty filter or plugin doing the same. 
The Solr client could then post the request using Content-Encoding: gzip

> Implement indexing from gzip format file
> ----------------------------------------
>
>                 Key: SOLR-7925
>                 URL: https://issues.apache.org/jira/browse/SOLR-7925
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 5.2.1
>            Reporter: Song Hyonwoo
>            Priority: Minor
>              Labels: patch
>         Attachments: SOLR-7925.patch
>
>
> 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>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to