Hi all,

I would like to delete Zend_Search_Lucene index files from the program.
The following is what I tried, but got exception.

$searchIndexDirectory = $searchIndex->getDirectory();
foreach ($searchIndexDirectory->fileList() as $file)
{
        if ($searchIndexDirectory->fileExists($file))
                $searchIndexDirectory->deleteFile($file);
}
$searchIndex->commit();

Fatal error: Ignoring exception from Zend_Search_Lucene::__destruct()
while an exception is already active (Uncaught Zend_Search_Lucene_Exception
in Zend\Search\Lucene\Storage\File\Filesystem.php on line 59)

I'm using ZF1.5.2.
Any good way to do?

-- 
:: Iwasaki Teruyuki | http://atamasoft.com/
:: twitter: twk | skype: iwasakiteruyuki

Reply via email to