zepgram / module-disable-search-engine

zepgram/module-disable-search-engine

Magento2 module to disable search engine and fulltext indexing for category search

  • Benjamin Calef
magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Info Tests: N/A Security: Pass MIT

Disable Search Engine

Disable default search engine in Magento2 and catalog search fulltext indexing.

Purpose

When catalog search and display are not handled by your Magento it could be redundant to integrate ES in your architecture.

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...

Natively Magento do not offer the possibility to completely disable ElasticSearch, this module made it possible.

What it does

  • Make Elasticsearch service no longer required to install and run Magento2.
  • Set value "none" as default search engine
  • Return empty response from front-end queries
  • Uninstall magento modules:
    • magento/module-elasticsearch-catalog-permissions
    • magento/module-elasticsearch-catalog-permissions-graph-ql
    • magento/module-inventory-elasticsearch
    • magento/module-elasticsearch
    • magento/module-elasticsearch-6
    • magento/module-elasticsearch-7
    • magento/module-elasticsearch-8
    • magento/module-open-search

You should have no issue with indexation, compilation and even front-end research, which should always return no result.

Compatibility

Magento v2.3.0 v2.4.3 v2.4.4 v2.4.6 v2.4.8
module DSE ~0.0.0 ~0.1.0 ~0.2.0 ~0.3.0 ~0.4.0

Notes

  • v0.1.0: adding indexer handler (Magento 2.4.3)
  • v0.2.0: the magento/module-advanced-search has been reintroduced due to a dependency in magento/module-catalog-graph-ql (Magento 2.4.4).
  • v0.3.0: uninstalling magento/module-open-search
  • v0.4.0: uninstalling magento/module-elasticsearch-8

Installation

composer require zepgram/module-disable-search-engine
bin/magento module:enable Zepgram_DisableSearchEngine
bin/magento setup:upgrade

Issue

If you encountered an issue, please report it on this GitHub repository.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
0.4.0 stable Pass Magento 2.4.7-2.4.9 Details 2025-05-16 18:44:54
0.2.3 stable Not tested Not yet tested Details 2025-04-09 07:30:35
0.3.1 stable Not tested Not yet tested Details 2023-11-24 15:40:12
0.2.2 stable Not tested Not yet tested Details 2023-11-24 15:39:44
0.1.2 stable Not tested Not yet tested Details 2023-11-24 15:39:07
0.0.4 stable Not tested Not yet tested Details 2023-11-24 15:38:44
0.3.0 stable Not tested Not yet tested Details 2023-04-03 09:03:10
0.2.1 stable Not tested Not yet tested Details 2022-12-22 15:32:38
0.2.0 stable Not tested Not yet tested Details 2022-04-01 20:17:32
0.0.3 stable Not tested Not yet tested Details 2021-09-06 21:36:30
0.1.1 stable Not tested Not yet tested Details 2021-09-06 21:32:30
0.1.0 stable Not tested Not yet tested Details 2021-08-12 16:14:49
0.0.2 stable Not tested Not yet tested Details 2021-05-30 14:32:15
0.0.1 stable Not tested Not yet tested Details 2021-05-08 22:12:47

Requires 6

Package Constraint
php ^8.2
magento/framework ^103.0.6
magento/module-backend ^102.0.6
magento/module-indexer ^100.4.6
magento/module-search ^101.1.6
magento/module-catalog-search ^102.0.6

Replaces 8

Package Constraint
magento/module-elasticsearch-catalog-permissions *
magento/module-elasticsearch-catalog-permissions-graph-ql *
magento/module-inventory-elasticsearch *
magento/module-elasticsearch *
magento/module-elasticsearch-6 *
magento/module-elasticsearch-7 *
magento/module-elasticsearch-8 *
magento/module-open-search *

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Pass 0
PHPMD Pass 0
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
MIT
Authors

More from zepgram

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.