Answering to myself on this one.

Solr uses Jetty 9.x which does not support compressed requests by itself 
meaning, the application behind Jetty (that is Solr) has to decompress by 
itself which is not the case for now.
Thus even without using SolrJ, sending XML compressed in GZIP to Solr (with 
cURL for instance) is not possible for now.

Seems quite surprising to me though.

-----
 
Hello,

I was wondering if someone ever had the need to send compressed (gzip) update 
requests (adding/deleting documents), especially using SolrJ.

Somehow I expected it to be done by default, but didn't find any documentation 
about it and when looking at the code it seems there is no option to do it. Or 
is javabin compressed by default?
- 
https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/impl/BinaryRequestWriter.java#L49
- 
https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/request/RequestWriter.java#L55
 (if not using Javabin)
- 
https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/impl/Http2SolrClient.java#L587

By the way, is there any documentation about javabin? I could only find one on 
the "old wiki".

Thanks,
Gaël

Reply via email to