Issues

ZF-12058: Zend_Search_Lucene error for search

Issue Type: Bug Created: 2012-02-14T12:21:42.000+0000 Last Updated: 2012-02-23T21:35:11.000+0000 Status: Open Fix version(s): Reporter: johan (johhan) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

  • zend

Related issues: Attachments:

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

Posted by Adam Lundrigan (adamlundrigan) on 2012-02-22T20:46:39.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts