throw execption if creation/opening of index fails

This commit is contained in:
Uwe Steinmann 2020-09-12 12:49:33 +02:00
parent 41c08492ac
commit 25fc979a3a

View File

@ -39,8 +39,12 @@ class SeedDMS_Lucene_Indexer {
} /* }}} */
static function create($conf) { /* {{{ */
try {
$index = Zend_Search_Lucene::create($conf['indexdir']);
return($index);
} catch (Exception $e) {
return null;
}
} /* }}} */
/**