Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-05 Thread Reej Nayagam
Thanks a lot Shawn. Regards Reej On Mon, 5 Jul 2021 at 1:27 PM, Shawn Heisey wrote: > On 7/4/2021 8:55 PM, Reej Nayagam wrote: > > Please find the versions as below > > Solr core - 8.8.2 > > Solrj - 8.8.2 > > Zookeeper - 3.6.3 > > Zookeeper jute - 3.6.3 > > > > Kindly do share any code samples

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-04 Thread Shawn Heisey
On 7/4/2021 8:55 PM, Reej Nayagam wrote: Please find the versions as below Solr core - 8.8.2 Solrj - 8.8.2 Zookeeper - 3.6.3 Zookeeper jute - 3.6.3 Kindly do share any code samples if you have them. I built some code and pasted it here: https://apaste.info/fI0a In my example, this class is

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-04 Thread Reej Nayagam
Hi Shawn, Please find the versions as below Solr core - 8.8.2 Solrj - 8.8.2 Zookeeper - 3.6.3 Zookeeper jute - 3.6.3 Kindly do share any code samples if you have them. Thanks & Regards Reej On Fri, 2 Jul 2021 at 9:05 AM, Shawn Heisey wrote: > On 7/1/2021 6:36 PM, Reej M wrote: > > Hi Shawn /

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-04 Thread Reej Nayagam
Thank you for your reply. Regards Reej On Fri, 2 Jul 2021 at 10:58 PM, Vincenzo D'Amore wrote: > the solrclients are thread safe so, yes, I recommend to use a single > instance during all the life of your application (as said I prefer have an > instance for each index/collection) > If a network

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-02 Thread Vincenzo D'Amore
the solrclients are thread safe so, yes, I recommend to use a single instance during all the life of your application (as said I prefer have an instance for each index/collection) If a network problem occurs, the client will manage to reconnect automatically to the server. But regarding the default

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-01 Thread Shawn Heisey
On 7/1/2021 6:36 PM, Reej M wrote: Hi Shawn / Team , Need a suggestion on using the cloudsolrclient. In our application, we have few cores which will be indexing every few minutes (starting from 15 mins intervall and searching will also be done by the users at the same time. Is it recommended t

Re: HTTPSolrClient - help required [Singleton Recommended?]

2021-07-01 Thread Reej M
Hi Shawn / Team , Need a suggestion on using the cloudsolrclient. In our application, we have few cores which will be indexing every few minutes (starting from 15 mins intervall and searching will also be done by the users at the same time. Is it recommended to maintain a single cloudsolrclient

Re: HTTPSolrClient - help required

2021-06-29 Thread Reej M
Oh ok Walter. For the moment, we too cannot update to cloudsolrclient, and we are trying to find a way to resume the connections for now, and later work on the code cleanup. Thanks > On 30 Jun 2021, at 12:49 AM, Walter Underwood wrote: > > CloudSolrClient is not an absolute requirement for a

Re: HTTPSolrClient - help required

2021-06-29 Thread Walter Underwood
CloudSolrClient is not an absolute requirement for a Solr Cloud cluster. We use regular HTTPSolrClient sending all requests to the load balancer. Actually, we use a separate load balancer for indexing, to keep the monitoring separate and to set different timeouts than for queries. This setup is

Re: HTTPSolrClient - help required

2021-06-29 Thread Reej Nayagam
Thanks Shawn & Vicenzo. Will check it out and change accordingly. Thanks again Shawn for your clear explanation. Regards Reej On Tue, 29 Jun 2021 at 9:47 PM, Vincenzo D'Amore wrote: > Right, you should always use CloudSolrClient as a singleton. > To be honest I'm used to reuse a CloudSolrClien

Re: HTTPSolrClient - help required

2021-06-29 Thread Vincenzo D'Amore
Right, you should always use CloudSolrClient as a singleton. To be honest I'm used to reuse a CloudSolrClient instance for each collection/index. On Tue, Jun 29, 2021 at 3:12 PM Shawn Heisey wrote: > On 6/29/2021 6:43 AM, Reej Nayagam wrote: > > Hi Vincenzo Yes we are using cloud and initial sol

Re: HTTPSolrClient - help required

2021-06-29 Thread Shawn Heisey
On 6/29/2021 6:43 AM, Reej Nayagam wrote: Hi Vincenzo Yes we are using cloud and initial solr version was 4.10.4 and we upgraded the jars alone to 8.8.2 now in the application side connecting to solr Server to fix some vulnerability. As we have upgraded the jars we changed httpsolrserver connec

Re: HTTPSolrClient - help required

2021-06-29 Thread Reej Nayagam
n’t close the connection, >>> thread >>>> will be in hung state and affects the performance. I too faced this in >>> my >>>> implementation. >>>> >>>> Thanks and Regards, >>>> Srinivas Kashyap >>>> >>>>

Re: HTTPSolrClient - help required

2021-06-29 Thread Vincenzo D'Amore
y >> > implementation. >> > >> > Thanks and Regards, >> > Srinivas Kashyap >> > >> > Leading Retail Platform to discover, develop, and deliver products @ >> > consumer speed. >> > >> > -Original Message- >

Re: HTTPSolrClient - help required

2021-06-29 Thread Vincenzo D'Amore
l Message- > > From: Reej Nayagam > > Sent: 29 June 2021 07:29 > > To: Solr ; solr-user Lucene < > > solr-u...@lucene.apache.org> > > Subject: Fwd: HTTPSolrClient - help required > > > > Hi Team, > > Any advise is highly appreciated.

RE: HTTPSolrClient - help required

2021-06-29 Thread Srinivas Kashyap
pass the corename as first parameter Thanks and Regards, Srinivas Kashyap             -Original Message- From: Reej Nayagam Sent: 29 June 2021 15:47 To: Solr Cc: solr-user Lucene Subject: Re: HTTPSolrClient - help required Hi Thanks for the reply. I'm trying to create a singleton

Re: HTTPSolrClient - help required

2021-06-29 Thread Reej Nayagam
e. I too faced this in my >> implementation. >> >> Thanks and Regards, >> Srinivas Kashyap >> >> Leading Retail Platform to discover, develop, and deliver products @ >> consumer speed. >> >> -----Original Message----- >> From: Reej Nayagam

Re: HTTPSolrClient - help required

2021-06-29 Thread Reej Nayagam
r speed. > > -Original Message- > From: Reej Nayagam > Sent: 29 June 2021 07:29 > To: Solr ; solr-user Lucene < > solr-u...@lucene.apache.org> > Subject: Fwd: HTTPSolrClient - help required > > Hi Team, > Any advise is highly appreciated. > Do we need

RE: HTTPSolrClient - help required

2021-06-29 Thread Srinivas Kashyap
Retail Platform to discover, develop, and deliver products @ consumer speed. -Original Message- From: Reej Nayagam Sent: 29 June 2021 07:29 To: Solr ; solr-user Lucene Subject: Fwd: HTTPSolrClient - help required Hi Team, Any advise is highly appreciated. Do we need to use a singleton

Re: HTTPSolrClient - help required

2021-06-29 Thread Vincenzo D'Amore
have you tried to use the httpsolrclient as singletons? Create them only once and reuse. Not sure but I think it’s a best practice. Ciao, Vincenzo > On 29 Jun 2021, at 03:59, Reej Nayagam wrote: > > Hi Team, > Any advise is highly appreciated. > Do we need to use a singleton connection of a c

Fwd: HTTPSolrClient - help required

2021-06-28 Thread Reej Nayagam
Hi Team, Any advise is highly appreciated. Do we need to use a singleton connection of a connection pool. Please kindly advise Thanks Reej Sent from my iPhone Begin forwarded message: > From: Reej Nayagam > Date: 28 June 2021 at 11:53:58 AM SGT > To: Solr , solr-user Lucene > > Subject: HTT