From: Neal, R. <rn...@ri...> - 2012-06-07 14:29:41
|
Good morning, We would like to upgrade Solr from 1.3 to 1.4 on our Vufind development server. I spent yesterday searching the list and also the web for some instructions on how to do this with limited success. Thankfully, I eventually found the following from a web post (2009) and, while I don't understand some of the instructions, I wonder if this is the way to do it for Vufind. I think it may be close to what I have to do. I have copied his instructions to the bottom of this email. I found it here: http://www.jroller.com/otis/entry/upgrading_to_solr_1_4 1. I downloaded Solr 1.4 and unpacked it in /usr/local/downloads. 2. I understand that I am to copy apache-solr-1.4.1.war to usr/local/vufind/solr/jetty/webapps . I assume that I am to change the name to reflect the .war file that is currently in usr/local/vufind/solr/jetty/webapps which is solr.war. I don't know what "Do this on the slave(s) first!" means. What are Solr slaves and slave logs? 3. I see the suggestion to compare solrconfig.xml to the example solrconfig.xml file and make changes. Is this necessary? "Go through your solrconfig.xml and compare it to the one in Solr's example/solr/conf/ dir. You will want to copy a few pieces in mainIndex section from the example solrconfig.xml to your config. You will want to add the replication request handler, field and document analysis handlers, and such." If my configuration file is good why would I need to bring something over from an example file from the new version? 4. I don't know what 'old Solr 1.3 replication' means. "Disable replication scripts if you have old Solr 1.3 replication set up". 5. I don't know what this means "When you are ready, deploy Solr war and solrconfig to your master". In summary I 'think' I just have to copy apache-solr-1.4.1.war to usr/local/vufind/solr/jetty/webapps and rename it to solr.war, but I just want to know if someone else has done this. It seems strange that I only need one file out of the whole upgrade. Thanks for your suggestions! Rick >From http://www.jroller.com/otis/entry/upgrading_to_solr_1_4: With Solr 1.4 out, what's the procedure for upgrading? I don't have the recipe, but here is what I have done and some recommendations: * Download and unpack Solr 1.4.0 * Copy the war from the dist/ dir and put it in the servlet container's webapps/ dir. Do this on the slave(s) first! * Go through your solrconfig.xml and compare it to the one in Solr's example/solr/conf/ dir. You will want to copy a few pieces in mainIndex section from the example solrconfig.xml to your config. You will want to add the replication request handler, field and document analysis handlers, and such. * Disable replication scripts if you have old Solr 1.3 replication set up. This will involve disabling snapshot creation on the master (comment out the postCommit/postOptimize hooks in master's solrconfig.xml) and commenting out various snap* scripts in the slaves' crontabs. * Restart Solr slave(s), make sure there are no errors in the logs, and try searching. * Watch slave logs and make sure the new Solr 1.4 replication is working correctly. Try searching after replication. * When you are ready, deploy Solr war and solrconfig to your master. Warning: adding document to the master after this point will upgrade your index version/format. You will not be able to use the old Solr 1.3 to read this index from here on. Other notes: * Back up your index and configs first * Do this in dev/staging/QA environment first * Load test * If you are using dates, look at the new tdate field type If I missed anything, please leave a comment and I will update the post. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Rick Neal Library Systems Manager Boatwright Memorial Library University of Richmond, VA 23173 rn...@ri... |