General

How To Configure Elasticsearch in Magento 2?

Hello Magento Folks,

Last time, We learned about Magento 2: What is a Featured Products and How to Create It for Magento 2 stores.

Today, I am here to explain to you What is Elasticsearch and How to Install and Configure Elasticsearch in Magento 2.4.

So, let’s start with What is Elasticsearch in Magento 2.4

What is Elasticsearch?

In Magento 2.4 Elasticsearch is a very robust and extremely extensible wide-ranged search engine which is been used by large-quantity sites. When you implement Elasticsearch in your Magento 2 Store it includes search recommendations and suggestions.

Magento 2.4 Elasticsearch has many advantages, it shows immediate search result with all the necessary searches autocomplete and also evaluate all the equivalent keywords. It also provides the feature of redirecting a user to the home page if one matching result is found.

Why Use Elasticsearch in Magento 2?

All the E-Commerce websites which are constructed in Magento 2.4, where the search is the maximum prioritized functionality every E-commerce store need. So, an adequate search is a need of every store owner for helping the buyers to get their wanted products from the store which results in giving pleasant customer experience. Otherwise, the less effective search tool will delay the search process which will be the reason behind the bad customer experience.

Accordingly, Elasticsearch implementation is the most effective way to boost your search feature in your Magento 2 store.

How to Install and Configure Magento 2.4 with Elasticsearch In Ubuntu:

Stepwise solution for implementing Magento 2.4 with Elasticsearch In Ubuntu:

Step 1: Configuration of the search option in your store.

1.1 Select Stores from the sidebar, after that, select the option of configuration given below the settings

1.2 Click on Catalog given below the CATALOG which is on the left side of the screen displayed

1.3 Tap on Catalog search to enlarge that section

1.4 Now Uncheck the checkbox of Use system value and then select the option of the Elasticsearch version which is installed on your server

Step 2: Configuration of Elasticsearch Connection

Fill all the given details like

2.1 Insert the Elasticsearch Server Hostname. The default value is localhost

2.2 Insert the Elasticsearch Server Port

2.3 Insert a prefix in which the Elasticsearch Index Prefix field to complete the Elasticsearch index

2.4 Enable Elasticsearch HTTP Auth field, click Yes for using HTTP authentication to recommend a username and password which access Elasticsearch Server

2.5 Insert the figure in seconds before the system gets timeout to the Elasticsearch Server Timeout field

2.6 After that for verifying the connection, tap onto the Test Connection field

Step 3: Configuration of Suggestions and Recommendations

3.1 Click on Yes option, in the Enable Search Suggestions and follow the following steps:

3.2 Fill out all the Search Suggestions Count field where the number of suggestions you want to offer

3.3 Inside the show results for each suggestion field, click on Yes option to

3.4 Inside the Enable Search Recommendations field, click Yes option for offering recommendations

3.5 Now, fill out the Search Recommendation Count Field with the number of recommendations that you want to offer

3.6 Inside Show Results Count for Each Recommendation field, click Yes to show the number of results got for each recommendation

After completing all your configuration, tap on the Save Config option.

Over to You!

In conclusion, you can now enable Elasticsearch in your Magento 2 Store by following the easy steps given above which will enrich your Magento 2 store and make your customer experience better.

So this is it for today. If you face any issues while applying the above steps, then feel free to contact our support team for any help.

Please let us know if you have any specific topics for us to write the blog in the comments section below.

Happy Reading?

Click to rate this post!
[Total: 15 Average: 4]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer👨‍💻 and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy😀 & Helping🙏 Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books📖 or Traveling🚗. Also, he is Speaker at Magento Meetups.

View Comments

Recent Posts

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

1 day ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

1 day ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

2 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

3 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

5 days ago

How Upcoming Cookie Changes Will Affect Your E-commerce Website?

The e-commerce world is constantly in flux. New tech and strategies emerge daily to help…

5 days ago