I am planning to use ConcurrentUpdateSolrServer to index documents in batches. I did not find any API to set GZIP compression on client-server communication. Can someone please help?

Thanks in advance.

有帮助吗?

解决方案

ConcurrentUpdateSolrServer allows you to pass a org.apache.http.client.HttpClient client to the constructor, as seen here.

So you can enable gzip at HttpClient level (see here for instance, check with the doc of the exact version you use), and then pass along that instance to ConcurrentUpdateSolrServer

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top