Skip to main content

MySQL Catalog Search to be Removed from Magento 2.4

Elasticsearch Replaces MySQL Search from Magento 2.4x

Indeed, it has been a busy year for Magento as I said it would be. 

Magento launched its new release on 14th January 2020, which was Magento version 2.3.4. Magento quarterly releases updates to the security and functional patches. Magento 2.3.5. was the latest release until it launched a beta version Magento 2.4.0. on 1 June 2020.

The catalog search engine will be removed from Magento 2.4.0. and Elasticsearch 6.x or 7.x will be a required component.

Why MySQL Search was Replaced in Magento 2.4

The reason for removal of MySQL search engine is that Elasticsearch provides superior search capabilities as well as catalog performance optimizations.

NB: Elasticsearch Host will be Required

An Elasticsearch host that is setup and configured, is required prior to installing version of Magento 2.4.0. Magento’s will attempt to connect to a server at localhost:9200.

During installation the Elasticsearch connection will be checked, and installation will fail if Magento is unable to connect to an Elasticsearch host. If this occurs, make sure to check if Elasticsearch is up and running, and check that you have used the correct connection details.

If your configuration does not match the defaults, these settings can be configured by using arguments passed to setup:install, in much the same way the database connection is configured.

setup:install --elasticsearch-host=es.mystore.co.za

Affected products and versions:

 Magento Commerce v2.4.0 and Magento Open Source v2.4.0

ElasticSearch_required_for_Magento_Install

At this time, participation in the Magento Beta Program is required for access to the test the new search.

What is Elasticsearch?

Elastic Site Search provides powerful website search capabilities, without user intervention.

The Elasticsearch website crawler is designed to maintain current content current in web search results. It can be customized to suit most webmaster requirement and also delvers detailed analytics that can be used to control search term relevance.

Some of the best features of Elasticsearch are:

  • Autocomplete
  • Custom ranking of search results
  • Synonyms management
  • Built-in analytics
  • Content weight relevance

You can find more information about Elastic Site Search here.

 

 

Caylen Ho Chung

About the author

Caylen Ho Chung

Caylen is our Magento stock/product specialist.

He spends some of his after-hours time learning more about Magento, which he loves! 

Back to top