Issues:
'We can't find products matching the selection.'
Summary:
This error is shown on all category pages. No products are displayed.
Initial Thoughts:
Presumed upgrade or install of Elastic Search server.
Remediation
Install Elastic Search.
Solution Applied
Open terminal and run the following commands (These commands may vary depending on your server environment).
- First we need to install PGP key
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - - sudo apt-get install apt-transport-https
- echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
- sudo apt-get update && sudo apt-get install elasticsearch
- sudo update-rc.d elasticsearch defaults 95 10
- sudo -i service elasticsearch start
To check if Elastic Search is running or not run
http://127.0.0.1:9200/ in browser and if you see below response then Elastic Search is running
{
"name" : "root",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "ogkAKBNnTheVFrPs3Aw5Ug",
"version" : {
"number" : "7.8.1",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "b5ca9c58fb664ca8bf9e4057fc229b3396bf3a89",
"build_date" : "2020-07-21T16:40:44.668009Z",
"build_snapshot" : false,
"lucene_version" : "8.5.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
What is Elastic Search
Elastic Search is a powerful search engine that can be installed on a server. In the case of Magento, it mainly improves speed for product searching.
Get a Quote
If you would like a bespoke price for your web design project, please complete the form shown here and we'll get back to you.