# zepgram/module-disable-search-engine

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

`composer require zepgram/module-disable-search-engine`

Canonical URL: https://packagento.com/zepgram/module-disable-search-engine

## At a glance

- **Vendor**: zepgram (https://packagento.com/zepgram.md)
- **Latest version**: 0.4.0 — released 2025-05-16
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/zepgram/module-disable-search-engine and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require zepgram/module-disable-search-engine:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

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

## README

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.

## Recent Versions

| Version | Released |
|---|---|
| 0.4.0 | 2025-05-16 |
| 0.2.3 | 2025-04-09 |
| 0.3.1 | 2023-11-24 |
| 0.2.2 | 2023-11-24 |
| 0.1.2 | 2023-11-24 |
| 0.0.4 | 2023-11-24 |
| 0.3.0 | 2023-04-03 |
| 0.2.1 | 2022-12-22 |
| 0.2.0 | 2022-04-01 |
| 0.0.3 | 2021-09-06 |

Showing 10 of 14 versions. Full release history on https://packagento.com/zepgram/module-disable-search-engine.

## Dependencies

### Require

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

### Replace

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

## Quality

Latest release (0.4.0) passes the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| 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. Never affect the Compatibility verdict — 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.

| 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 against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| 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 per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| 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

| 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

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["zepgram/module-disable-search-engine"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

zepgram is a Magento 2 vendor on Packagento. See https://packagento.com/zepgram.md for their full catalogue.

