On 12/28/2012 1:32 AM, [email protected] wrote:
Hi all,
For the ManifoldCF project, we have an output connector for Solr, and we'd like
to port it to use SolrJ instead of homegrown code. However, I cannot find any
mention anywhere of whether anyone has tried to maintain compatibility between
later versions of SolrJ (e.g. 4.0.0) and previous versions of Solr (e.g. 3.x or
1.4). Can someone either point me at the document where this is stated, or
confirm that there is indeed no such supported interoperability?
Building on Erik's answer:
For my setup, we have often used a newer SolrJ than Solr. When we were
running 1.4.1, we deployed a SolrJ from 3.x, which required that we use
the XML response parser in SolrJ because of the javabin change
introduced in 3.1. Now we are deploying SolrJ 4.0 to work against 3.5
servers, so that we will be 100% ready for Solr 4.1.
Except for the XML response parser requirement between versions 1.4.1
and older on one side and 3.1 and later on the other, I'm not aware of
any problems coming from using a newer SolrJ against an older server.
If both sides are 3.1 or later, there should also be no problem using an
older SolrJ against a newer server, unless you require new server
features that are not available in the older SolrJ. The most likely
feature you might need from SolrJ 4.0 that you won't find in older
versions is the new setRequestHandler method on SolrQuery objects. It's
worth noting that this method is even useful if your server is running
an older version.
I went ahead and added what I wrote above to the SolrJ page on the Solr
wiki. If there are any inaccuracies, feel free to fix.
https://wiki.apache.org/solr/Solrj
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]