Upgrading sunspot_solr Solr Instance - outoftime/sunspot GitHub Wiki
This is kind of a hack, but it's for your development env only, so it's Ok ;)
So we are going to upgrade the Solr instance that comes pre-installed with the sunspot_solr gem. Currently its version is 1.3 and I've successfully upgraded it to the 3.5 version. This is a step-by-step about how to do it:
- Stop all (in all your envs) your Solr instances with the rake task
bundle exec rake sunspot:solr:stop - Download the the Solr version you want and unzip it
- Move to where the sunspot_solr gem is installed via
cd $(bundle show sunspot_solr) - Rename the
solrfolder tosolr-originalviamv solr solr-original - Copy the
examplefolder from the Solr distribution into the gem folder viacp -rf ~/Downloads/solr-4.1.0/example solr
That's it, you have upgraded your Solr instance. You can start it: bundle exec rake sunspot:solr:start and reindex bundle exec rake sunspot:solr:reindex. Go to the Solr Admin Dashboard and verify the version number.