Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upgrade properly from solr 4.0 to 4.2?

Tags:

solr

My solr Update extract handler stopped working after upgrading from 4.0 to 4.2

When I upgraded from solr 4.0 to 4.2 suddenly all the file uploads using /update/extract stopped working. I noticed a class was missing.

I've solved this by making by changing solrconfig(from 4.2) with the changes I had in 4.0.

Because of al these problems I'm wondering whats the best way to upgrade from Solr 4.0 to 4.2? (or any other version)

I just copied the new war,dist folder and contrib folder and tought it would be fine but it sure isn't. I know re-indexing is recommended.

like image 540
DavidVdd Avatar asked Mar 21 '13 14:03

DavidVdd


People also ask

What is the recommended way to deploy Solr in a production environment?

Standalone - Standalone mode is the commonly recommended setup for Production. Solr is executed in its own JVM which makes it much easier to monitor reliability and scalability. Production environment should always use a Solr cluster, which runs multiple Solr instances running in standalone mode.

What is the difference between Solr and Solr cloud?

Solr and SolrCloud are not separate things; Solr is the application while SolrCloud is a mode of running Solr. The alternative to running Solr in SolrCloud mode is running it in standalone mode.

Why does Solr need ZooKeeper?

SolrCloud is flexible distributed search and indexing, without a master node to allocate nodes, shards and replicas. Instead, Solr uses ZooKeeper to manage these locations, depending on configuration files and schemas. Queries and updates can be sent to any server.


1 Answers

Typically when I upgrade between Solr versions, I follow the steps outlined below...

  1. Read the entire release notes for the new release. Especially checking the "Upgrading from Solr X.x.x" section. Here are the 4.2.0 Release Notes Also pay attention to any other items in the Detailed Change List that may apply to your instance.
  2. Download the latest release and compare the solrconfig.xml and schema.xml in the /example/solr/collection1/conf folder with the same files from the version of Solr from which I am attempting to upgrade (Solr 4.0 in your case). I use a tool like DiffMerge or something similar to help highlight the differences.
  3. Examine the differences found in step 2. Research the changes (using Release Notes, Solr Issues Tracker, Solr Wiki, etc.) and determine what impact there will be (if any) with what I have actually implemented in my Solr instance.
  4. Stand up a Solr instance running the new version with appropriate config changes for my implementation and then test accordingly.

Yes, I agree that re-indexing is best when you can, as the underlying version of Lucene is changing as well and a re-index will be required to leverage any new features or improvements.

Hope this helps.

like image 68
Paige Cook Avatar answered Sep 17 '22 18:09

Paige Cook