https://github.com/swissup/module-search-mysql-legacy
https://github.com/swissup/module-search-mysql-legacy
magento magento2 magento2-extension magento2-module magento2-search
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/swissup/module-search-mysql-legacy
- Owner: swissup
- Created: 2020-11-10T08:14:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T09:16:57.000Z (almost 3 years ago)
- Last Synced: 2025-03-29T20:04:45.160Z (about 1 year ago)
- Topics: magento, magento2, magento2-extension, magento2-module, magento2-search
- Language: PHP
- Homepage:
- Size: 132 KB
- Stars: 104
- Watchers: 11
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Legacy Mysql Search
It's a magento2-module for the [metapackage](https://github.com/swissup/search-mysql-legacy/).
The news sometimes isn't good, but there is always a way out. Yes, [MySQL is no longer supported](https://devdocs.magento.com/guides/v2.4/release-notes/backward-incompatible-changes/#230---24) 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](https://docs.swissuplabs.com/m2/extensions/search-mysql-legacy/installation/)
###### For clients
There are several ways to install extension for clients:
1. If you've bought the product at Magento's Marketplace - use
[Marketplace installation instructions](https://docs.magento.com/marketplace/user_guide/buyers/install-extension.html)
2. Otherwise, you have two options:
- Install the sources directly from [our repository](https://docs.swissuplabs.com/m2/extensions/search-mysql-legacy/installation/composer/) - **recommended**
- Download archive and use [manual installation](https://docs.swissuplabs.com/m2/extensions/search-mysql-legacy/installation/manual/)
###### For maintainers
```bash
cd
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.
```bash
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'
```