You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by srinivasarao vundavalli <sr...@gmail.com> on 2016/04/26 12:14:32 UTC

HttpSolrClient issue

I am using HttpSolrClient class to query and fetch the documents from solr
index. I am passing my custom httpclient object to HttpSolrClient.
HttpSolrClient solrClient = new HttpSolrClient(url, httpClient);

This is restricting me setting maximum number of connections using
*setMaxTotalConnections
<https://lucene.apache.org/solr/5_0_0/solr-solrj/org/apache/solr/client/solrj/impl/HttpSolrClient.html#setMaxTotalConnections%28int%29>*
method as the http client was created outside and the operation is not
allowed. Can someone let me know how I can set this value if I create the
http client outside the HttpSolrClient class.

-- 
http://cheyuta-helpinghands.blogspot.com