Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top