質問

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