jetty supports http gzip and I've added it to solr before in my own installs (and submitted patches to do so by default to solr) but I don't know about the handling for solrj.
IME compression helps a little, sometimes a lot, and never hurts. Even the admin interface benefits a lot from regular old http gzip On Thu, Jan 7, 2021 at 8:03 AM Gael Jourdan-Weil <gael.jourdan-w...@kelkoogroup.com> wrote: > > 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