How to install Elasticsearch For Magento 2

How to install Elasticsearch

Elasticsearch installation is required in the latest Magento 2.4 Version. Elasticsearch is a search engine based on the Lucene library. It is a multitenant-capable full-text search engine. Elasticsearch used in Magento for catalog search engine. In this topic, We will discuss installing Elasticsearch and the initial configuration.

What are the benefits provided by Elasticsearch?
  1. Provided the catalog products advance searches for our store.
  2. Works well out of the box
  3. Support for multiple languages
  4. Supports real-time data and analysis
  5. We can be used as a document-oriented datastore
Which Elasticsearch version support by Magento 2?

We need to configure and install Elasticsearch 7.6.x before upgrading to Magento 2.4.x.

How to install Elasticsearch?

Let's start the Elasticseach installation on my Magento 2 store. We have discussed the below blog about Magento 2 and Sample data installation.

I am using the Mac operating system. Before, We install the elastic search, First We required the install JDK(Java Software Development Kit).

If you have already installed the JDK, check a version using the below command on your terminal.
java -version

 If you got the message "java: command not found displays". You must install the Java SDK. Visit the Magento 2 official documents for more information.

πŸ‘‰ Install the latest JDK on CentOS

πŸ‘‰ Install the latest JDK on Ubuntu

How to install Elasticsearch for Magento 2

I have already installed the JDK as per the above screenshot. If you want to install the JDK on your mac OS. You need to download the JDK dmg file for your system. Refer it's installation documents, πŸ‘‰click here

I have installed Elasticsearch using Homebrew. If you are aware of the Homebrew, visit the homebrew πŸ‘‰Official Website. After installing the brew, We need to run the below command in the terminal.

brew update
brew install elasticsearch 
After successfully installed Elasticsearch, We can start Elasticsearch using the below command.
How to install Elasticsearch for Magento 2

Now, the Elasticsearch search runs successfully on my MAC OS. If you are using Windows, Ubuntu OS then you need to visit πŸ‘‰ Elasticsearch official website

Ask Question #trycoder
Facebook PageπŸ‘‰
Watch more videos here
Click to SUBSCRIBE to more Videos!

Please Like, Comment, Share and Subscribe THANK YOU!