On 6/30/2015 6:40 AM, Vincenzo D'Amore wrote:
> I have a bunch of java clients connecting to a solrcloud cluster 4.8.1 with
> Solrj 4.8.0.
> The question is, I have to switch clients and cluster to the new version at
> same time?
> Could I upgrade the cluster and in the following months upgrade clients?
>
> BTW, looking at Solrj 5.2.1 I have seen few class names has changed, e.g.
> CloudSolrServer has changed in CloudSolrClient, but interface look like the
> same.
> Well, is there a changelog or a documentation that explain what are the
> main differences?

The CHANGES.txt for 4.8.1 does mention one bugfix specific to the cloud
client - SOLR-6035.  It would be a good idea to upgrade the client as
well as the server.  Since you are running SolrCloud, it is advisable to
keep your Solr and SolrJ versions the same, because SolrCloud is
changing very rapidly and cross-version compatibility is not very good. 
If you were not running SolrCloud, then you would not need to be as
careful with version numbers.  I'm using the 5.1.0 SolrJ client in my
dev index build program with Solr 4.9.1 and 4.7.2, and it all works
perfectly because my Solr servers are not in cloud mode.

When changes are committed to Solr, it is the CHANGES.txt file that gets
updated to track what was done, so that file has the best information. 
The section in that file for 5.0.0 has a VERY comprehensive list of
changes from version 4 to version 5.  Here is a version of that file
that you can browse easily:

https://lucene.apache.org/solr/5_2_1/changes/Changes.html#v5.0.0

The change from CloudSolrServer to CloudSolrClient is mentioned in
"Other Changes" as SOLR-6895 -- all of the "SolrServer" classes were
renamed by this issue, except EmbeddedSolrServer.  That one did not get
renamed since it is actually a server, not a client.

Note that the URL above is the CHANGES from 5.2.1, with the 5.0.0
section opened.  You should also read the sections for each version
*after* 5.0.0, and you may wish to read the sections for the 4.8.1,
4.9.x, and 4.10.x versions so you will know everything that has changed
since 4.8.0.

Thanks,
Shawn

Reply via email to