How to Configure Magento 2 Elasticsearch
Elasticsearch is an open sourced search engine providing websites with a smarter search interface. It is the most popular enterprise search engine in the industry and is used by companies worldwide. Elasticsearch provides scalable, real-time search that quickly indexes a site’s catalog bringing users the best results. It not only provides full-text search, but it also can learn mistakes like typos to ensure users always get results. This interface has been programmed to make load time as short as possible while continually learning your new content.
At Alpha Hosting, we know that Elasticsearch is extremely important to your ecommerce site. To make things easier for our clients we have decided to include Elasticsearch in all our Cloud Hosting packages. Recently, with the Magento 2 updates, elasticsearch is even more important than before! In this blog you will get step by step instructions on how to install Elasticsearch to your Magento 2 site.
Step 1: Install Elasticsearch
Head to your Alpha Hosting client portal, and select the service you want to install Elasticsearch to. Once selected, under view controls, you’ll scroll to where you see Elasticsearch and click install. After it is installed, you can grab the IP address and port number that Elasticsearch is installed on (you will need to reference these later).
Step 2: Set Up Elasticsearch
Go to your Magento 2 admin dashboard, and search for Elasticsearch Server Hostname. Change your search engine to the version of Elasticsearch you just installed, and hit save. After this is saved, flush your Magento cache. You should get a notification at the top of your page that will direct you to cache management. On the cache management page you can click Flush Magento Cache. Once this is complete your Elasticsearch should be ready to go!
Step 3: Test Your Search
Head to your live site and hit refresh. Then, in the search bar search for a relevant product, but include a typo. Your site should recognize this mistake and still show the correct results. If you need help or advice with these tools, we can help! Open a ticket, send us a chat, or call us and we can help.
See a video tutorial of this process in the video below! Also, don’t forget to subscribe to our YouTube channel for more videos like this!