On 10/15/2015 9:53 AM, fabigol wrote:
> i catch an old project working with Solr 1.4.1, jbossPortal and java 1.5.
> I try to migrate my  solr version  to solr 5.2.1 work with java 1.7.
> The solr indexation works but i fail to display the new results on my
> application.
> I want to know if i must update the jar in my project or if the old
version
> client (solr-solrj) can work with my new version Solr.
> How do i do?

Erick gave you information about Solr itself.  Here's some info for SolrJ:

If you want a 1.x version of SolrJ to work with Solr 3.x or later, you
must change the response parser to XML.

server.setParser(new XMLResponseParser());

https://wiki.apache.org/solr/Solrj#SolrJ.2FSolr_cross-version_compatibility

Depending on exactly how you use SolrJ, there may be other things that
need changing for compatibility, but the XML response parser will be
absolutely required.

Updating SolrJ is probably a better option, but you may need to update
your Java version too.  You will definitely need to change jars for
SolrJ dependencies.  Some code changes, such as HttpSolrServer to
HttpSolrClient, are recommended.

Thanks,
Shawn

Reply via email to