Magento Lucene 搜索异常 - 错误的 segments.gen 文件格式
Magento Lucene Search Exception - Wrong segments.gen file format
Magento 安装达到 100% 的磁盘使用率。修复这个问题后,貌似Lucene搜索下线了
我无法重建搜索索引,因为我只是遇到了这个错误:
[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
我已经解决了磁盘 spage 问题并 运行 修复了整个服务器的权限问题。我不确定下一步该做什么。
我最终解决了如下问题:
- 删除
var/indexer/
- 创建
var/indexe/
个替换文件夹
- SSH
php shell/lucene-tool.php --mark_unprocessed 1
- SSH
php shell/lucene-tool.php --removeall 1
- SSH
php shell/indexer.php --reindex rebuild_search_index_lucene
How to reindex all products from the scratch (SSH method) ? (Full reindex)
这恢复了搜索索引并且错误不再弹出。
Magento 安装达到 100% 的磁盘使用率。修复这个问题后,貌似Lucene搜索下线了
我无法重建搜索索引,因为我只是遇到了这个错误:
[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
我已经解决了磁盘 spage 问题并 运行 修复了整个服务器的权限问题。我不确定下一步该做什么。
我最终解决了如下问题:
- 删除
var/indexer/
- 创建
var/indexe/
个替换文件夹 - SSH
php shell/lucene-tool.php --mark_unprocessed 1
- SSH
php shell/lucene-tool.php --removeall 1
- SSH
php shell/indexer.php --reindex rebuild_search_index_lucene
How to reindex all products from the scratch (SSH method) ? (Full reindex)
这恢复了搜索索引并且错误不再弹出。