zepgram/module-disable-search-engine
Composer 安装命令:
composer require zepgram/module-disable-search-engine
包简介
Magento2 module to disable search engine and fulltext indexing for category search
README 文档
README
This module disables the default Magento 2 catalog search engine and related fulltext indexing—ideal for setups where search is handled outside of Magento (e.g., via a PIM, custom microservices, custom Elasticsearch implementation etc.).
🧭 Purpose
Magento 2 requires Elasticsearch or OpenSearch by default, even if your architecture does not use it for product search or catalog visibility.
This module completely disables Magento’s native search engine requirement, allowing you to:
- Simplify Magento's architecture
- Avoid unnecessary Elasticsearch & OpenSearch dependencies
- Prevent unwanted background processes like search indexation
Natively Magento do not offer the possibility to completely disable ElasticSearch, this module does.
✅ What it does
- Make Elasticsearch service no longer required to install and run Magento2.
- Set value "none" as default search engine
- Returns empty search results for all frontend catalog search queries
- Since Magento 2 Product Listing Pages (PLPs) rely on the search engine to fetch and filter products:
- All PLPs will return no products when this module is enabled.
- You must implement a custom product listing mechanism (via GraphQL, REST, or direct DB access) in your frontend or headless architecture.
- 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 can continue to index, compile, and run Magento without errors.
🧩 Compatibility
| Magento Version | v2.3.0 | v2.4.3 | v2.4.4 | v2.4.6 | v2.4.8 |
|---|---|---|---|---|---|
| Module Version | ~0.0.0 | ~0.1.0 | ~0.2.0 | ~0.3.0 | ~0.4.0 |
Version Notes
- v0.1.0: adding indexer handler (Magento 2.4.3)
- v0.2.0: Reintroduced
magento/module-advanced-searchdue to dependency withcatalog-graph-ql(Magento 2.4.4) - v0.3.0: Added support for uninstalling
magento/module-open-search - v0.4.0: Added support for 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 encounter any issues, please open a ticket on the GitHub repository or create a PR.
zepgram/module-disable-search-engine 适用场景与选型建议
zepgram/module-disable-search-engine 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 90.68k 次下载、GitHub Stars 达 87, 最近一次更新时间为 2021 年 05 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zepgram/module-disable-search-engine 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zepgram/module-disable-search-engine 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 90.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 88
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-08