Issues

ZF-12058: Zend_Search_Lucene error for search

Description

I'm getting following while indexing the keywords for search:

Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' in /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Storage/File/Filesystem.php:0 Stack trace:

0 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Storage/File/Filesystem.php(0): Zend_Search_Lucene_Storage_File_Filesystem::__construct()

#1 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Storage/Directory/Filesystem.php(0): Zend_Search_Lucene_Storage_File_Filesystem->__construct()

2 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Index/SegmentInfo.php(0): Zend_Search_Lucene_Storage_Directory_Filesystem->getFileObject()

3 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Index/SegmentInfo.php(0): Zend_Search_Lucene_Index_SegmentInfo->openCompoundFile()

4 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Index/SegmentMerger.php(0): Zend_Search_Lucene_Index_SegmentInfo->reset()

#5 /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Index/SegmentMe in /home/coffechi/public_html/modules/SmartSearch/Zend/Search/Lucene/Storage/File/Filesystem.php on line 0

Comments

Can you modify your code to catch the exception and provide the exception message? The lack of line numbers in that stack trace doesn't help, but it looks like it's coming from the constructor of Zend_Search_Lucene_Storage_File_Filesystem. All exceptions thrown there are related to being unable to open the file provided as the first argument of the constructor, so I would check your configuration to ensure you're pointing the storage component to a directory which is writeable by the webserver user