We all love test and staging environments but it becomes a problem when you have Solr integrated in your project and you have a test solr, a staging solr and a production solr core. To re-index a site is not a big problem, but what if you want to go live and switch indexes immediately?
Drupal.org has wrestled with this problem. So I wanted to show you how they do it.
Create three Solr cores
- mysite_core1 (will be used for tests)
- mysite_core2 (will be used for staging initially)
- mysite_core3 (will be used for production initially)