You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jason Gerlowski <ge...@gmail.com> on 2018/09/25 14:39:47 UTC
Querying with ConcurrentUpdateSolrClient
Hi all,
The Javadocs for ConcurrentUpdateSolrClient steer users away from
using it for query requests:
"Although any SolrClient request can be made with this implementation,
it is only recommended to use ConcurrentUpdateSolrClient with /update
requests. The class HttpSolrClient is better suited for the query
interface."
Looking at CUSC's code though, it immediately defers all non-update
requests to an internal HttpSolrClient.
(https://github.com/apache/lucene-solr/blob/master/solr/solrj/src/java/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrClient.java#L477)
I can't see how this would be any better or worse than using an
unwrapped HttpSolrClient instead.
Is there something I'm missing that changes how this internal
HttpSolrClient behaves? Or is the advice in CUSC's javadocs maybe
outdated and ripe for removal?
Best,
Jason