Skip to content
How to remove Elasticsearch from Magento 2
E-commerce · 2 min read

How to remove Elasticsearch from Magento 2

What is it?

Elasticsearch, developed by Elastic, is an open-source distributed search and analytics engine designed to handle large volumes of unstructured or semi-structured data. Its strength lies in its real-time search capabilities, which make it a popular choice for applications such as log analysis, full-text search and business intelligence.

Here are some of Elasticsearch’s main features:

  1. Real-time search: Elasticsearch excels at providing fast, real-time search capabilities, making it ideal for applications that require immediate access to data.
  2. Distributed and scalable: Elasticsearch’s architecture is designed for distribution, ensuring scalability across multiple nodes to handle large datasets and heavy query loads.
  3. Full-text search: Elasticsearch’s robust text analysis capabilities and relevance scoring make it a leader in full-text search.
  4. JSON-based documents: data in Elasticsearch is stored in JSON format, offering flexibility in handling complex and diverse data structures.
  5. Geospatial data support: Elasticsearch supports geospatial queries, making it well suited to applications that handle location-based data.

Why remove it?

Not all hosting providers include Elasticsearch in the plan, or even offer it as an add-on. So if you want to launch your store on Magento 2 and then grow it over time, reducing the initial spending effort, this could be a solution worth considering.

How to do it?

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
bin/magento config:set catalog/search/engine 'lmysql'

You might also like