Wanna install Magento Elasticsearch extension? We can help you with it.
At Bobcares, we often get requests from our customers to install Magento Elasticsearch extension as part of our Server Management Services.
Today, let’s get into the details on how our Support Engineers install and fix this error.
Why use Elasticsearch with Magento?
Elasticsearch is a powerful tool for search and logging.
By using this extension with the Magento shop, it helps to increase sales and customer satisfaction via providing precise results for the customer queries. Also, this reduces search time and improves customer experience.
The following are the advantages of Elasticsearch as a search engine for the Magento 2 catalog.
- Fast and advanced product searches in the catalog
- Multiple language support.
- Proper indexing
How we install Magento Elasticsearch extension to fix deprecation notice
At Bobcares, where we have more than a decade of expertise in managing servers, we see that many of our clients face problems with Magento servers.
Often, customers may see a notification on their Magento administration panel as below.
It notifies the customers to upgrade from the default search engine which is based on MySQL to the Elastic Search implementation. Therefore, installing Elasticsearch will remove the warning from the Magento administration panel.
Now, let’s see how our Support Engineers install Elasticsearch as a search engine for the Magento 2 catalog.
1. Initially, we install the recent version of Java. So, we update the repositories with the following command.
apt-get update
2. Then, we install the apt-transport-https package and the Java Development Kit with the following commands.
apt-get apt-transport-https
apt-get install openjdk-8-jdk
Now, we ensure that whether the java is installed or not with the java -version
command.
3. We add the GPG Key of Elasticsearch in the machine with the following command:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
4. Also, we add the elastic search repository to the sources.list of the system.
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list
Next, we install Elastic Search with the following command:
apt-get install elasticsearch
5. At last, we enable and start the Elasticsearch service with the following commands.
systemctl enable elasticsearch.service
systemctl start elasticsearch.service
6. Also, we define in the administration panel of Magento to use the Elasticsearch engine instead of MySQL.
So, we go to Stores >> Configuration >> Catalog Search. Here, we choose Elasticsearch 6.0+ as a default search engine and click on the Test Connection button.
Then we clear the cache of the store with the following command.
php bin/magento cache:clean
Again, we update the indexes.
php bin/magento indexer:reindex
That’s it. Now, the warning will no more appear on the admin panel.
[Need assistance to fix Magento errors? We’ll help you.]
Conclusion
In short, the Magento Elasticsearch extension is a tool for search and logging. Also. it improves the default Magento search results. Today, we saw how our Support Engineers assisted our customers to eliminate the deprecation notice from the Magento administration panel.
0 Comments