Skip to content

Commit 07d3868

Browse files
author
Benjamin Calef
committed
[v0.2.0] compatibility for magento 2.4.4
1 parent e61aba9 commit 07d3868

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed

README.md

+19-8
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,43 @@ Disable default search engine in Magento2 and catalog search fulltext indexing.
44

55
## Purpose
66

7+
When catalog search and display are not handled by your Magento it could be redundant to integrate ES in your architecture.
8+
9+
You may have a PIM dedicated for this, or maybe you are designing a microservice architecture, you want to smooth the Magento monolith aspect etc...
10+
11+
Natively Magento do not offer the possibility to completely disable ElasticSearch, this module made it possible.
12+
13+
## What it does
14+
715
- Make Elasticsearch service no longer required to install and run Magento2.
816
- Set value "none" as default search engine
917
- Return empty response from front-end queries
1018
- Uninstall magento modules:
11-
- magento/module-advanced-search
1219
- magento/module-elasticsearch-catalog-permissions
1320
- magento/module-inventory-elasticsearch
1421
- magento/module-elasticsearch
1522
- magento/module-elasticsearch-6
1623
- magento/module-elasticsearch-7
1724

18-
## Compatibility
19-
20-
Tested on Magento version 2.3.x and 2.4.x
21-
2225
You should have no issue with indexation, compilation and even front-end research, which should always return no result.
2326

24-
If you encountered an issue during installation, please report it on this github repository.
27+
## Compatibility
2528

26-
For version greater or equal to v2.4.3 you can install the latest tag v0.1.x.
29+
| Magento | v2.3 | v2.4.3 | v2.4.4 |
30+
|------------|--------|--------|--------|
31+
| module DSE | ~0.0.0 | ~0.1.0 | ~0.2.0 |
2732

28-
For lower version you may install v0.0.x.
33+
### Notes
34+
- v0.1.0: Adding indexer handler (Magento 2.4.3)
35+
- v0.2.0: magento/module-advanced-search has been reintroduced due to a dependency in magento/module-catalog-graph-ql (Magento 2.4.4).
2936

3037
## Installation
3138
```
3239
composer require zepgram/module-disable-search-engine
3340
bin/magento module:enable Zepgram_DisableSearchEngine
3441
bin/magento setup:upgrade
3542
```
43+
44+
## Issue
45+
46+
If you encountered an issue, please report it on this GitHub repository.

composer.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,22 @@
22
"name": "zepgram/module-disable-search-engine",
33
"description": "Magento2 module to disable search engine and fulltext indexing for category search",
44
"type": "magento2-module",
5-
"version": "0.1.1",
5+
"version": "0.2.0",
66
"authors": [
77
{
88
"name": "Benjamin Calef",
99
"email": "[email protected]"
1010
}
1111
],
1212
"require": {
13-
"php": "~7.3.0||~7.4.0",
14-
"magento/framework": "^103.0.3",
15-
"magento/module-backend": "^102.0.3",
16-
"magento/module-indexer": "^100.4.3",
17-
"magento/module-search": "^101.1.3",
18-
"magento/module-catalog-search": "^102.0.3"
13+
"php": "^7.4||^8.0",
14+
"magento/framework": "^103.0.4",
15+
"magento/module-backend": "^102.0.4",
16+
"magento/module-indexer": "^100.4.4",
17+
"magento/module-search": "^101.1.4",
18+
"magento/module-catalog-search": "^102.0.4"
1919
},
2020
"replace": {
21-
"magento/module-advanced-search": "*",
2221
"magento/module-elasticsearch-catalog-permissions": "*",
2322
"magento/module-inventory-elasticsearch": "*",
2423
"magento/module-elasticsearch": "*",

etc/di.xml

+7
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,11 @@
3535
</argument>
3636
</arguments>
3737
</type>
38+
<type name="Magento\AdvancedSearch\Model\SuggestedQueries">
39+
<arguments>
40+
<argument name="data" xsi:type="array">
41+
<item name="none" xsi:type="string">Magento\AdvancedSearch\Model\DataProvider\Suggestions</item>
42+
</argument>
43+
</arguments>
44+
</type>
3845
</config>

0 commit comments

Comments
 (0)