Re: SolrJ client question

2023-05-31 Thread mtn search
Thanks Shawn and Eric! On Tue, May 30, 2023 at 2:57 PM Eric Pugh wrote: > I think that creating it when you run it and closing it will be just > fine. As Shawn said, it’ll be “well under a second” ;-)./ > > > On May 30, 2023, at 2:01 PM, Shawn Heisey wrote: > > > > On 5/30/23 11:13, mtn search

Re: SolrJ client question

2023-05-30 Thread Eric Pugh
I think that creating it when you run it and closing it will be just fine. As Shawn said, it’ll be “well under a second” ;-)./ > On May 30, 2023, at 2:01 PM, Shawn Heisey wrote: > > On 5/30/23 11:13, mtn search wrote: >> My initial thought is to create a client as needed rather than to reuse d

Re: SolrJ client question

2023-05-30 Thread Shawn Heisey
On 5/30/23 11:13, mtn search wrote: My initial thought is to create a client as needed rather than to reuse due to the gap in time between usage. Feedback? My general advice would be to create a client when the program starts and close it when the program ends. The clients are designed for l

SolrJ client question

2023-05-30 Thread mtn search
Hello, What is the guidance regarding when to reuse versus when to recreate a SolrJ client? Specifically, the app in question is a provisioning app that will periodically create collections/aliases for a client. The calls to SolrJ might be hours to sometimes days apart. Querying/Indexing is han