Re: Need Help on Solr Client connection Pooling

2018-08-30 Thread Shawn Heisey
On 8/30/2018 2:13 AM, Gembali Satish kumar wrote: *SolrClient client = new HttpSolrClient.Builder(* * SolrUtil.getSolrURL(tsConfigUtil.getClusterAdvertisedAddress(), aInCollectionName)).build();* after my job search done, I am closing my client. *client.close();* but from UI getting more reques

Re: Need Help on Solr Client connection Pooling

2018-08-30 Thread Shalin Shekhar Mangar
You should create a single HttpSolrClient and re-use for all requests. It is thread safe and creates an Http connection pool internally (well Apache HttpClient does). On Thu, Aug 30, 2018 at 2:28 PM Gembali Satish kumar < gembalisatishku...@gmail.com> wrote: > Hi Team, > > Need some help on Clie

Need Help on Solr Client connection Pooling

2018-08-30 Thread Gembali Satish kumar
Hi Team, Need some help on Client connection object pooling I am using SolrJ API to connect the Solr. This below snippet I used to create the client object. *SolrClient client = new HttpSolrClient.Builder(* * SolrUtil.getSolrURL(tsConfigUtil.getClusterAdvertisedAddress(), aInCollectionName)).bu