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

Introduction to flask

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session because we are entering into one of python’s web-based application called flask. In this article, we are going to see the following What is flask Prequistes Installation of flask in python Some of flask template engine. What is flask? Flask is one of python-based framework which is used to create web applications. Flight is a very light web framework. During installation, flask comes with pre-installed modules and functions which are used to backup your own web applications. Flask is very easy to understand and perfect go-to for beginners and with flask, a web server can run in less than 3 lines of code. Prequistes Before learning flask, we recommend the reader to have a basic mastery of python concepts. Installation of flask  Before installing flask, we have to checked if python has been installed or. If n...

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

Introduction to Django

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session. we are entering into one of python’s application called Django. In this article, we are going to discuss the following: What is Django Why must we use Django  A brief history of Django Installation of Django Popularity of Django What is Django? Python has so many framework application and Django happen to be one of them. Being a python-based-framework, it is used to quickly create web applications.  When building websites, django provides similar ready-made components to handle user authentication, forms, a way to upload components. Why use django? Django is very fast. It takes applications from concept to applications very quickly Django has thousand available packages in it when it is installed. With django, we can launch web applications is a matter of hours. Django is a highly is secured and helps...