예제 #1
0
 public function __construct()
 {
     try {
         parent::__construct(new Zend_Search_Lucene(self::INDEX_DIR, false));
     } catch (Zend_Search_Lucene_Exception $e) {
         parent::__construct(new Zend_Search_Lucene(self::INDEX_DIR, true));
     }
     Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding("UTF-8");
 }
예제 #2
0
 /**
  * Object constructor
  *
  * @param Zend_Search_Lucene_Interface $index
  * @param string $module the Drupal module managing the index
  */
 public function __construct(Zend_Search_Lucene_Interface $index, $module)
 {
     parent::__construct($index);
     $this->_module = (string) $module;
 }