front-commerce-oss/magento1-elasticsuite-indexer
Composer 安装命令:
composer require front-commerce-oss/magento1-elasticsuite-indexer
包简介
Magento ElasticSearch Indexer
README 文档
README
This module is a fork from ElasticSuite for Magento 1 aimed at providing an ElasticSearch indexing for Magento 1 that is compatible with the latest ElasticSuite for Magento 2 schema.
We recommend that you use OpenMage LTS for a version of Magento 1 that is still supported.
DISCLAIMER: we don't plan to support querying the index from Magento 1's frontend. However, if you'd like to take ownership of this aspect we would be glad to add you as a maintainer. Please contact us.
Status: This module is used in production by some Front-Commerce / Magento 1 projects
Installation
You can install the module using composer, modman or by copying manually the content of the src/ directory in your Magento installation.
When installed, you can login in the admin panel to configure it.
Configuration
The module can be configured from the System > Configuration > Catalog > Catalog Search page and section. You first need to make sure that the Search Engine param is set to Smile Serchandizing Suite.
Configure the ElasticSearch server and port, and save the settings.
You should then reindex your store, by running: php shell/indexer.php reindexall (or n98 index:reindex:all).
TIPS: in case of issues, take a look at the Troubleshooting section below.
Troubleshooting
Here is an overview of the most common errors and solutions for them.
FORBIDDEN/12/index read-only / allow delete (api) error
This error could appear during a reindexation. There are 2 possible causes.
The index is in read-only mode
For some reasons, your index could be in read-only mode. In this case, you should reconfigure the index as detailed here:
curl -XPUT "http://localhost:9200/_settings" -H'Content-Type: application/json' -d' { "index": { "blocks": { "read_only_allow_delete": "false" } } }'
Not enough remaining space on disk
Another reason could be that your hard drive has not enough space left on the device (~ <10 Go). The solution is… to make some space on it!
Try to empty your trash, remove unused docker images (docker image prune -a) or other things like that! Note: ncdu is your friend.
Fatal error: Uncaught Error: Call to undefined method Mage_CatalogSearch_Model_Resource_Fulltext_Engine::getCurrentIndexesForScopes()
There is a known unclear error message, that looks like the error below:
Fatal error: Uncaught Error: Call to undefined method Mage_CatalogSearch_Model_Resource_Fulltext_Engine::getCurrentIndexesForScopes() in /var/www/.modman/magento1-elasticsuite-indexer/src/app/code/community/Smile/ElasticSearch/Model/Indexer/Fulltext.php:189
Stack trace:
#0 /var/www/.modman/magento1-elasticsuite-indexer/src/app/code/community/Smile/ElasticSearch/Model/Indexer/Fulltext.php(175): Smile_ElasticSearch_Model_Indexer_Fulltext->getAllIndexes()
#1 /var/www/htdocs/app/code/core/Mage/Index/Model/Process.php(212): Smile_ElasticSearch_Model_Indexer_Fulltext->reindexAll()
#2 /var/www/htdocs/app/code/core/Mage/Index/Model/Process.php(260): Mage_Index_Model_Process->reindexAll()
#3 phar:///usr/local/bin/n98/src/N98/Magento/Command/Indexer/AbstractIndexerCommand.php(218): Mage_Index_Model_Process->reindexEverything()
#4 phar:///usr/local/bin/n98/src/N98/Magento/Command/Indexer/AbstractIndexerCommand.php(187): N98\Magento\Command\Indexer\AbstractIndexerCommand->executeProcess(Object(Symfony\Component\Console\Output\Console in /var/www/.modman/magento1-elasticsuite-indexer/src/app/code/community/Smile/ElasticSearch/Model/Indexer/Fulltext.php on line 189
The error is triggered when your ElasticSearch configuration is incorrect. The solution is to double-check your settings in admin. If the problem persists, please contact us.
Note: the error is because in such situation
\Smile_ElasticSearch_Model_Resource_Engine_Elasticsearch::getStatus()returnsfalseand our code doesn't handle this gracefully yet. We should throw an exception with a clearer message for developers. Hopefully in an upcoming version! Feel free to send us a PR for this.
License
front-commerce-oss/magento1-elasticsuite-indexer 适用场景与选型建议
front-commerce-oss/magento1-elasticsuite-indexer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 41 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 08 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 front-commerce-oss/magento1-elasticsuite-indexer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 front-commerce-oss/magento1-elasticsuite-indexer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-08-28