Skip to main content

How to install Elasticsearch For Magento 2


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.
elasticsearch
 
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

Comments

Popular posts from this blog

JavaScript Functions

  Hi there, and welcome to another exciting lesson on JavaScript. If this is your first time here, please do well to check out our previous lessons. In the previous lesson, we were discussing JavaScript math methods. It was very intuitive as we got to learn how to use the various math methods. To proceed, we shall be looking at JavaScript functions.  A function in JavaScript like in every other programming language could be defined as a block of code that is written to perform a particular task, and this function is usually invoked or called before it is being implemented. We have been talking about methods throughout the previous lessons right. Do you know that those methods are actually functions? Yes they are functions. You can now have an overview of the importance of functions in every programming language. How do we create a function in JS? To create a function, you follow the format function functionName(Argument) {//Block of code }. Some functions do have a return val...

JavaScript Math Methods

Hello everyone, and welcome to another exciting JavaScript lesson. In the last lessons you have been seeing other methods being used in JS (for example, the string methods). We shall go further into exploring other methods. This time, it’s going to be math methods. Do not move an inch because it’s going to be a very exciting. Before we look at what a math method is, let’s have an overview of math objects. A math object in JavaScript is a static built-in object that includes properties and methods used in performing mathematical tasks. Talking about math properties, they have the syntax Math.property . Some examples are Math.E that returns Euler’s number, Math.PI that returns PI, Math.LN2 that returns the natural logarithm of 2, and many others. The various JavaScript methods contained in the math object, thus, make mathematical operations easier and reduce effort as well as time in math-oriented programming. Some JS methods include abs( ), ceil( ), cos( ), sqrt( ), pow( ), log( ) ...

How to generate random numbers using NumP1

Hello. Welcome to another edition on this platform. For more better understanding, do checkout our YouTube channel to get the video tutorial. In this article of today, we are going to see how to generate random numbers using any of the following methods: Generating a random number Generating a random float and integer Generating random number arrays Generating random number from an array What is a random number? This is a number which cannot be predicted before its occurrence. This number might not different every time. Programmatically, they are two categories of random numbers:     Pseudo-Random numbers       True Random numbers. Just as programs which are written by programmers are a set of instructions, we must follow an algorithm to generate random numbers. Random numbers which are generated using an algorithm are called Pseudo-Random numbers. To generate a true random number, it is important to get the data from sources such as the keyboards, mou...