Why we need to install an Elasticsearch for Magento 2.4?

In Magento 2.4, all installations required to be configured and utilize Elasticsearch as the catalogue search solution. Elasticsearch gives the following advantages:

  • Fast and advanced searches on products in the catalogue 
  • Support for many languages
  • Support for stop words and synonyms
  • Buyers are not disturbed while Elasticsearch reindexes
  • Precise, performant, and expandable
  • Operates properly out of the box
  • Simple to horizontally measure
  • Supports real-time data and report
  • Can be utilized as a document-oriented datastore
  • Applications in framework search, including analysis, personalization, performance, and storage

Versions Supported 

You should install and configure Elasticsearch before updating to Magento 2.4.x.

Refer to the system requirement-specific version information.

Magento does not maintain with Elasticsearch 2.x, 5.x, and 6.x.

Suggested configurations

All of the following tasks we discuss assume you have configured your system this way.

 

  • The Magento application and Elasticsearch are installed on separate hosts
  • Every host has its personal web server; the web servers do not have to be identical.

    For example, the Magento application can manage Apache and Elasticsearch can run Nginx.

  • Web servers utilize Transport Layer Security (TLS).

    Installing TLS is beyond the scope of our documentation.

Search requests are treated as follows:

  1. A search request from a user is collected by the Magento web server, which delivers it to the Elasticsearch server.

    You configure the Elasticsearch to join the proxy’s host and port. We suggest the web server’s SSL port (by default, 443).

  2. The Elasticsearch web server (listening on port 443) proxies call to the Elasticsearch server (by default, it receives on port 9200).
  3. Introduction to Elasticsearch is more protected by HTTP Basic authentication. Every request to reach Elasticsearch requires travel over SSL and gives a valid username and password.
  4. Elasticsearch treats the search request.
  5. Communication returns with the identical route, with the Elasticsearch web server operating as a secure reverse proxy.

 

If you are looking for Magento Developer, visit Magento2 Agency.