Version compatibility chart for Tomcat, Apache Solr, and Drupal

Author: 
Parent Feed: 

The sysadmins here were doing some software upgrades the other day and asked me which versions of Tomcat and Apache Solr they should install on our shared Drupal hosting servers. The answer is a little complex, so I finally just drew them a diagram.

Note that in Drupal 7 there are two completely unrelated modules which can talk to Apache Solr: Apache Solr Search Integration, which has existed since Drupal 6 and is primarily developed by Acquia, and Search API Solr search, which uses Drupal 7's Search API family of modules. Both have their advantages and disadvantages, but overall the Search API approach provides more flexibility because it provides a standardized way for module authors to customize the results from several different search backends. With Search API you can also switch search engines with relative ease, should you ever choose to do so.

Here's the chart (click for a larger, more readable version):

Chart

In short, any version of Tomcat is fine (but read this note if you're using Tomcat 7). Apache Solr 1.4.x can be used with any of the Drupal modules which provide Solr integration, but you'll have to use Drupal 7 or Apache Solr Search Integration 6.x-3.x if you want to run Apache Solr 3.x. Displaying search results using Views is easy in Drupal 7 but requires lots of unsupported, deprecated modules in Drupal 6. And don't forget to update your schema.xml and solrconfig.xml files on your Tomcat server when you upgrade your Drupal Solr modules or switch between Solr 1.4.x and Solr 3.x!

If you want to index attached files running Tika as a stand-alone Java executable on the web server, you should be able to use any version you like. (In this use case, you only need Tika and a JVM installed on the web node; Tomcat and Solr aren't necessary.) I had trouble getting Tika to run on the Solr server side with Tomcat 5.5 or 6 using Solr 1.4, but my co-worker j0nathan has Tika 1.2 running fine with Tomcat 6 and Solr 3.x (tika-app-1.2.jar, tika-core-1.0.jar, tika-parsers-1.0.jar).

updated 03 Oct 2012 feedback from nick_vh, who pointed out that Apache Solr Search Integration 6.x-3.x is also compatible with Apache Solr 3.x. See also Nick's blog post, Upgrading Apache Solr from 1.4 to 3.5 and its implications.

updated 20 Feb 2013 no longer necessary to patch Search API Solr Search in order to use Solr 3.x.

AttachmentSize
55.77 KB
Original Post: