MageDelight Featured Image

How to Solve Elasticsearch Not Working Issue in Magento 2?

Today, we’re going to teach you guys how to solve the Elasticsearch not working issue in Magento 2.

Released in 2010, Elasticsearch is a search and analytics engine that quickly became the most popular search engine thanks to its full-text search, real-time search, accuracy, and autocomplete features.

However, many Magento 2 store owners face the issue where the Elasticsearch shows either no results or a 404 Not Found page.

Fortunately, it is quite easy to solve the Elasticsearch not working issue in a Magento 2 store.

In this tutorial, we’ll show you exactly how to solve the Elasticsearch not working issue in your Magento 2 store.

Step-By-Step Process to Solve Elasticsearch Not Working Issue in Magento 2

Please follow the below steps to learn how to solve the Elasticsearch issue in Magento 2.

Step – 1

First of all, you need to install Magento 2 Elasticsearch Extension and configure it in your Magento 2 store.

Step – 2

After that, log in to your admin panel and navigate to Stores > Configuration > Advanced Search, expand the General Settings section, and do the following:

Elasticsearch Magento 2 Extension

  • Specify the width of the popup in the Popup Width (px) field.
  • Select Dynamic (based on popup width) in the Search Field Width field.
  • Mention the number of characters that customers need to write to trigger the search process in the Min Characters field.

Step – 3

Next, you need to scroll down and do the following as shown in the screenshot below:

Elasticsearch Magento 2

  • Select YES in the Enable Tabs on the Search Results Page field.
  • Select NO in the Enable Indexation for Autocomplete Popup field.
  • Choose whether to show related search queries or not in the Show Related Search Queries in the Search Results field.
  • Choose whether to replace the empty search result message or not in the Replace Empty Search Result Message with CMS Block field.
  • Click on the Save Changes button to finish the process.

Conclusion

And that’s about it! This is the easiest way to solve Elasticsearch not working issue in Magento 2. We hope that you found this tutorial helpful. However, if you need our professional help with Magento 2 Development, feel free to reach out to us anytime.

Tags