How to Configure Elasticsearch with Magento

by Fayyaz Khattak  October 19, 2017

Magento Elasticsearch is a server-based tool that is capable of full-text searching at a very high speed. It is powered by Apache Lucene (which is an open-source full-text search library). It is able to achieve this speed because, instead of searching the whole word matching the desired result from the entire database, it uses the indexing service.

Magento Elasticsearch

This is similar to the indexing of a book. In this case, indexes are made out of letters. So as soon as you start searching the elasticsearch mechanism, start hovering to your result matching your first letter entries.

Why Use Elasticsearch With Magento?

According to Microsoft, the attention span of an average person surfing the internet has been reduced to 8 seconds. Therefore an online retailer must be able to sell quickly and well in less than 4 seconds. Scientists have claimed, that the longer a user spends time on surfing your site, the less likely he will buy something. Why would anyone stay in a store if the salesman keeps on presenting something one does not want?

To keep your store’s search precise and fast for your customers, elasticsearch is the most exceptional tool a web developer should use. This will enhance the customer’s experience and will make good use of his time in your store.

How to Setup Elasticsearch?

You can quickly setup Elasticsearch on your Magento store if you precisely follow the guide below. There are some prerequisites, make sure you fulfill them before you start.

Prerequisites:

  • You have an activated server on Cloudways.
  • You have an active Magento App installed on your server.

Prepare your server on Cloudways

  • Login/Sign up to Cloudways Platform.

Cloudways Login

  • Select Magento Application from the drop-down menu. Here, you should also name your application and server.

Cloudways Select Magento Application

  • Select Cloud Provider of your choice from the available infrastructure options.

Select Linode Cloudways Application

  • Choose your Server Size based on your needs. You can scale the size of your server whenever you feel the need.

Select Server Size Cloudways Linode

  • Select the Server Location of your choice; whichever is nearest to your audience. For each Cloud provider, you have the option of multiple data centers.

Select Linode Server Location Cloudways

Now click on Launch Now button and wait for your server preparation.

Enable Elasticsearch

After successfully configuring the Cloudways server, you need to enable Elasticsearch on your Cloudways server.  To enable Elasticsearch on your Cloudways server, go to the Settings & Packages tab on the Servers screen.

ElasticSearch on Cloudways

Elasticsearch is now enabled on your server. It is now time to configure Elasticsearch with your Magento store.

Configure ElasticSearch With Magento

To configure ElasticSearch with your Magento store, Open your Magento admin panel.

Magento Admin Panel

In this tutorial, I will use Magento’s extension to use Elasticsearch. There are many products available in the market. However, I found Bubbleshop Elasticsearch Extension by Wyomind to be one of the finest paid services. You can get this Extension only on €95.

This will provide you a zip file. For installing the extension, download .zip file from Bubble Shop website and go to your public_html using FTP server and unzip the archive in your Magento root folder.

Note: Don’t forget to clear the Magento cache after unzipping.

Elasticsearch Settings in Magento

After uploading extension files on your Magento root directory, you need to go to System > Configuration > Catalog > Catalog Search > Search Engine.

And define Elasticsearch as default search engine. After that, make a “Category Products,” “Elasticsearch Product” reindex via System > Index Management.

index management magento

After this go to System > Configuration > Bubble Extensions > Elasticsearch and customize the autocomplete features of this extension. (Autocomplete is enabled by default).

magento elasticsearch

Conclusion

You’ve successfully configured Elasticsearch with your Magento store using Cloudways! Your Cloudways Managed Magento store is now ready to give you more sales and less cart abandonment. If you still don’t have a managed Magento store hosted on Cloudways, then it is the right time for you to join the next significant evolution of cloud hosting.

Start Creating Web Apps on Managed Cloud Servers Now!

Easy Web App Deployment for Agencies, Developers and E-Commerce Industry

About Fayyaz Khattak

Fayyaz is a Magento Community Manager at Cloudways - A Managed Magento Hosting Platform. His objective is to learn & share about PHP & Magento Development in Community. Fayyaz is a food lover and enjoys driving. You can email him at m.fayyaz@cloudways.com

Stay Connected:

You Might Also Like...