/**
  * Configures and loads Zend_Search_Lucene
  */
 public static function load()
 {
     if (!self::$loaded) {
         set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/../vendor/'));
         // this is an ugly hack, but there's a bug somewhere with sfSimpleAutoload,
         // Zend_Search_Lucene, and PHP.
         require_once 'Zend/Search/Lucene.php';
         self::$loaded = true;
     }
 }