solr-node-client icon indicating copy to clipboard operation
solr-node-client copied to clipboard

Multiple instances of client

Open captainjackrana opened this issue 9 years ago • 1 comments

I have a user facing application where people make searches on a particular collection. How is the multi-request connection handled. Should i be creating new client instances on every request?

captainjackrana avatar Aug 27 '16 09:08 captainjackrana

Not at all, remember that this client uses HTTP for comunication, so, one instance per core should be fine. The thing I would be careful of is that solr has a number of searchers by default, if you are doing a lot of commits over the core at the same time, you could get an exception response from solr.

You can read more about it here: SolrDocs

ColadaFF avatar Aug 27 '16 19:08 ColadaFF