swissup / module-search-mysql-legacy
为 Magento 2.4 提供的旧版 mysql 搜索
1.1.8
2023-07-19 09:16 UTC
Requires
- magento/framework: >=102.0
- magento/module-backend: >=101.0
- magento/module-catalog: >=103.0
- magento/module-catalog-inventory: >=100.3
- magento/module-catalog-search: >=101.0
- magento/module-checkout: >=100.3
- magento/module-cms: >=103.0
- magento/module-customer: >=102.0
- magento/module-eav: >=102.0
- magento/module-search: >=101.0
- magento/module-store: >=101.0
- swissup/module-core: ^1.12.17
README
这是一个用于 元包 的 magento2-module。
有时候新闻并不乐观,但总有解决的办法。是的,自 Magento 2.4 开始,MySQL 已不再支持搜索。在升级到最新版本的 Magento 之前,您必须安装 Elasticsearch 7.6.x。
Elastic search 是一个很好的解决方案。即便如此,我们的大多数客户仍然更喜欢使用没有它的主机。让我们帮助您在不启用 Elastic search 的情况下安装 Magento 2.4。
我们发布了适用于 Magento 2 的 Legacy MySQL Search 模块
我们将 Magento 2.3.5 MySQL 搜索机制与 Magento 2.4 集成。Legacy MySQL Search 模块在 Catalog Search 配置设置中的搜索引擎下拉菜单中添加了一个新值。
因此,您无需使事情变得复杂。只需在下拉菜单中选择 "Legacy MySQL (已弃用) 值" 即可。
安装
对于客户
有几种方式可以为客户安装扩展
-
如果您在 Magento 的 Marketplace 上购买了产品 - 使用 Marketplace 安装说明
-
否则,您有两个选择
对于维护者
cd <magento_root> composer config repositories.swissup composer https://docs.swissuplabs.com/packages/ composer require swissup/module-search-mysql-legacy --prefer-source --ignore-platform-reqs bin/magento module:enable Swissup_SearchMysqlLegacy Swissup_Core bin/magento setup:upgrade --safe-mode=1 bin/magento setup:di:compile bin/magento indexer:reindex catalogsearch_fulltext
常见问题解答
如何在安装过程中不要求 Elasticsearch 安装 Magento 2.4.0?
使用 --disable-modules 选项
bin/magento setup:install -h
...
--disable-modules[=DISABLE-MODULES] List of comma-separated module names, that must be avoided during installation.
php bin/magento setup:install --disable-modules=Magento_InventoryElasticsearch,Magento_Elasticsearch7,Magento_Elasticsearch6,Magento_Elasticsearch
安装后,使用以下命令启用所有 elastic search 模块。
php bin/magento module:enable Magento_Elasticsearch Magento_Elasticsearch6 Magento_Elasticsearch7 Magento_InventoryElasticsearch
如何检查当前搜索引擎?
您可以使用以下方法检查您的当前搜索引擎:
bin/magento config:show catalog/search/engine
如何更改搜索引擎?
您可以使用以下方法更改您的当前搜索引擎:
bin/magento config:set catalog/search/engine 'lmysql'