Error message

Notice: Undefined offset: 1 in corporateclean_form_alter() (line 101 of /mnt/www/html/nickvh/docroot/sites/all/themes/corporateclean/template.php).

Run this at midnight and you will have all the slow queries in the slow_query.log file

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.

Recently I've been involved in drupal.org by upgrading the site to the latest version of Apache Solr Search Integration (from 6.x-1.x to 6.x-3.x, and in the near future to 7.x-1.x). This upgrade path is necessary as we still want to have a unified search capability across Drupal 6 and Drupal 7 sites, for example groups.drupal.org and drupal.org.

Sometimes you wished that all of Drupal cache would be disabled for the sake of testing or any other purpose.

Just call the enable/disable function at will in your custom code. Dont forget to enable caching for production, if you intend to use this in your development

To help people understand what this slightly complex module actually does I made some sequence diagrams. There is one for Apache Solr and one for what Acquia Search does to extend it.

These resources are also available on drupal.org :

Apache Solr Sequence Diagram

Pages

Subscribe to Nick Veenhof RSS