Skip to content
This repository has been archived by the owner on Oct 31, 2020. It is now read-only.

Updating Solr

cbeer edited this page Dec 1, 2011 · 1 revision
  1. Update the solrconfig.xml
  • At a minimum, update the luceneMatchVersion
  • To pull in any new changes to the solrconfig.xml from upstream, you can diff the solr example solrconfig.xml from the current and new versions of Solr and apply the changes to the Blacklight-distributed solrconfig.xml, e.g.:
$ diff -p apache-solr-3.4.0/example/solr/conf/solrconfig.xml apache-solr-3.5.0/example/solr/conf/solrconfig.xml > solrconfig-3.4-to-3.5-patch.patch
$ cat solrconfig-3.4-to-3.5-patch.patch | patch
  1. Update the schema.xml
  • It's possible there are no changes necessary.
  • To pull in any new changes to the schema.xml from upstream, you can diff the solr example schema.xml from the current and new versions of Solr and apply the changes to the Blacklight-distributed schema.xml
  1. Update the solr/lib and solr/contrib with the new jars

  2. Tag the new commit with the new version of solr

  3. Update Blacklight to use the new version of Solr (e.g. https://github.com/projectblacklight/blacklight/commit/4f5e5b57ee3761fa00a8e70fbef6be7f23d0d775)

  4. Copy the solrconfig.xml and schema.xml into the blacklight lib/generators/blacklight/templates/solr_conf directory

  5. Update test_support/bin/test.sh and lib/generators/blacklight/jetty_generator.rb to download the new, tagged version of solr

Clone this wiki locally