Esempio n. 1
0
 public static function getLuceneIndex(Doctrine_Table $table)
 {
     self::registerZend();
     if (file_exists($index = $table->getLuceneIndexFile())) {
         return Zend_Search_Lucene::open($index);
     } else {
         // We don't have to worry about creating the parent anymore because
         // we're using aFiles::getWritableDataFolder()
         return Zend_Search_Lucene::create($index);
     }
 }