On 4/28/2015 1:14 PM, spillane wrote: > I see that CloudSolrServer appeared in SolrJ 4.5, will that work with a 4.2 > SolrCloud? If so I'll upgrade my client and point the CloudSolrServer > constructor at my 5 ZK hosts. > > I would still use ConcurrentUpdateSolrServer as it is good for catching up > when my indexing has fallen behind. I know it swallows exceptions.
CloudSolrServer first appeared in Solr 4.0.0. Here's the 4.0.0 javadoc for that class: http://lucene.apache.org/solr/4_0_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html A 4.5 SolrJ MIGHT work with a 4.2 SolrCloud, but I'm not sure I'm brave enough to try it in production. SolrCloud has evolved *very* quickly in every single release since 4.0, when it became available, and I would not be surprised to learn that the version combination you've mentioned won't work. The capability for CloudSolrServer to send updates to shard leaders did not become available until SolrJ 4.5 ... but that's one of the big reasons that I think it's a bad idea to try and use it with a 4.2 cluster. I would not be surprised to learn that the capability requires at least 4.5 on the *server* side as well. As an FYI -- Solr 4.2.0 was released three years ago. The number of bugs fixed in that time is HUGE. One particularly annoying bug ... core/collection reloads in SolrCloud don't work right until version 4.4. Before that, you have to completely restart Solr. Thanks, Shawn