Magento Lucene搜索异常-错误的segments.gen文件格式
Magento安装达到了100%的磁盘使用率。在解决了这个问题之后,Lucene search似乎已经离线了 我无法重建搜索索引,因为我只是遇到以下错误:Magento Lucene搜索异常-错误的segments.gen文件格式,magento,zend-search-lucene,Magento,Zend Search Lucene,Magento安装达到了100%的磁盘使用率。在解决了这个问题之后,Lucene search似乎已经离线了 我无法重建搜索索引,因为我只是遇到以下错误: [ssh]$ php shell/lucene-tool.php --removeall 1
[ssh]$ php shell/lucene-tool.php --removeall 1
Removing all documents from the index...(can be slow)
PHP Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Wrong segments.gen file format' in /html/lib/Zend/Search/Lucene.php:266
Stack trace:
0 /html/lib/Zend/Search/Lucene.php(529): Zend_Search_Lucene::getActualGeneration(Object(Zend_Search_Lucene_Storage_Directory_Filesystem))
1 /html/lib/Zend/Search/Lucene.php(211): Zend_Search_Lucene->__construct('/html...', true)
2 /html/app/code/community/Php4u/BlastLuceneSearch/Model/Blastlucenesearch.php(19) : eval()'d code(1) : eval()'d code(1) : eval()'d code(18): Zend_Search_Lucene::create('/chroot/home/wo...')
3 /html/app/code/community/Php4u/BlastLuceneSearch/Model/Blastlucenesearch.php(19) : eval()'d code(1) : eval()'d code(1) : eval()'d code(18): Php4u_BlastLuceneSearch_Model_BlastLuceneSearch->getIndex()
4 /html/shell/lucene-t in /html/lib/Zend/Search/Lucene.php on line 297
我已经解决了磁盘垃圾问题,并在整个服务器上运行了权限修复程序。我不确定下一步该走哪一步 我最终解决了以下问题:
var/indexer/
var/indexe/
replacement文件夹php shell/lucene-tool.php——标记未处理的1
php shell/lucene-tool.php--removeall 1
php shell/indexer.php--reindex rebuild\u search\u index\u lucene
这恢复了搜索索引&错误不再弹出。我最终解决了以下问题:
var/indexer/
var/indexe/
replacement文件夹php shell/lucene-tool.php——标记未处理的1
php shell/lucene-tool.php--removeall 1
php shell/indexer.php--reindex rebuild\u search\u index\u lucene
这恢复了搜索索引&错误不再出现。我遇到了类似的问题,我认为删除
/var/indexer/
文件夹的内容才是真正需要做的。不过,它还是帮了我的忙,谢谢!我也遇到过类似的问题,我认为删除/var/indexer/
文件夹的内容才是真正需要做的。不过,它还是帮了我的忙,谢谢!