Вопрос

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