solr-node-client
solr-node-client copied to clipboard
Multiple instances of client
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?
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