public function __construct() { $index_path = BUGDAR_ROOT . '/cache/lucene_index'; Zend_Search_Lucene_Storage_Directory_Filesystem::SetDefaultFilePermissions(0777); if (file_exists($index_path)) { $this->lucene = Zend_Search_Lucene::Open($index_path); } else { $this->lucene = Zend_Search_Lucene::Create($index_path); } }