swissup/module-search-mysql-legacy
Composer 安装命令:
composer require swissup/module-search-mysql-legacy
包简介
Legacy mysql search for magento 2.4
README 文档
README
It's a magento2-module for the metapackage.
The news sometimes isn't good, but there is always a way out. Yes, MySQL is no longer supported for search since Magento 2.4. And you must install Elasticsearch 7.6.x before upgrading to the latest Magento version.
Elastic search is a great solution. Even so, a lot of our customers still prefer using hostings that don’t have it. Let us help you to install Magento 2.4 without Elastic search enabled.
We released the Legacy MySQL Search module for Magento 2
We integrated Magento 2.3.5 MySQL Search mechanism with Magento 2.4. The Legacy MySQL Search module enables a new value in the Search Engine drop-down of Catalog Search config settings.
So you don’t need things to get complicated. You have simply to choose the "Legacy MySQL (Deprecated) value" in drop-down.
Installation
For clients
There are several ways to install extension for clients:
-
If you've bought the product at Magento's Marketplace - use Marketplace installation instructions
-
Otherwise, you have two options:
- Install the sources directly from our repository - recommended
- Download archive and use manual installation
For maintainers
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
F.A.Q
How to install Magento 2.4.0 without Elasticsearch require during installation?
Use --disable-modules option
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
After installing enable all elastic search module with below command.
php bin/magento module:enable Magento_Elasticsearch Magento_Elasticsearch6 Magento_Elasticsearch7 Magento_InventoryElasticsearch
How can I check current search engine?
You can check your current search engine using:
bin/magento config:show catalog/search/engine
How can I change search engine?
You can change your current search engine using:
bin/magento config:set catalog/search/engine 'lmysql'
Configuration
Multi-word Search Logic
Location: Stores > Configuration > Catalog > Catalog Search > Multi-word Search Logic (MySQL Legacy)
Control how multi-word searches are interpreted:
OR Mode (Default) - Original Magento 2.3 behavior
- Search: "red bag"
- Finds: Products containing "red" OR "bag"
- Result: More products, less precise matches
AND Mode (Recommended) - Elasticsearch-like behavior
- Search: "red bag"
- Finds: Products containing "red" AND "bag"
- Result: Fewer products, more relevant matches
Note: Clear cache after changing this setting for immediate effect.
bin/magento cache:clean config
Future: Based on community feedback, AND mode may become the default in version 2.0.
swissup/module-search-mysql-legacy 适用场景与选型建议
swissup/module-search-mysql-legacy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 88.55k 次下载、GitHub Stars 达 104, 最近一次更新时间为 2021 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「search」 「mysql」 「legacy」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 swissup/module-search-mysql-legacy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 swissup/module-search-mysql-legacy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 swissup/module-search-mysql-legacy 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
A Laravel package to retrieve data from Google Search Console
Indexed Search Autocomplete - Extends the TYPO3 Core Extension Indexed_Search searchform with an autocomplete feature.
Abstraction Layer to index and search entities
Ipgeobase PHP API
Yii2 Extension for sending push notification with both Firebase Cloud Messaging (FCM) HTTP Server Protocols (APIs).
统计信息
- 总下载量: 88.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 104
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-05-24
