Hi,
For several weeks I encounter a few problems on my fresh Magento installation. I've tried a lot like everything is enabled but it keep giving me this error: "We can't find products matching the selection."
How I debug this so I can solve it?
Solved! Go to Solution.
@Lightme ,
if you are getting results while searching then the elasticsearch connection is fine.
this is something else which is causing this trouble.
Did you try to flush magento cache and browser cache ?
also did you check error logs inside var/log/ folder ?
@dipmish sorry I thought this was a public section not the freelance section, right?
"Hi,
Hope you're doing great.
I checked your post on magento forum regarding issue for "We can't find products matching the selection." Category page.
I can check and fix above issue as I'm freelance magento developer and have expertize in magento development and having total of 10 years of experience.
You can mail me at : dipmish@gmail.com for further discussion.
Looking forward to hear from you.
Thanks"
Hello @Lightme ,
Please specify your magento version, if it 2.4.x then you need to check your elasticsearch connection.
if you validate your elasticsearch and the connection is fine then check the configurations you have put in magento admin for elasticsearch.
if both are working and correct, try indexing by below commands :
php bin/magento indexer:reindex
PS : Yes, this is a public section and you can get all the required help from authorised contributors in the post command.
Hope it helps !
Magento version is ver. 2.4.3-p2
Elasticsearch is 7
"{
"name" : "xxx.xxx.xxx",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "0_Jaq7wAQ6GBMGiWqox59A",
"version" : {
"number" : "7.10.2",
"build_flavor" : "oss",
"build_type" : "rpm",
"build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
"build_date" : "2021-01-13T00:42:12.435326Z",
"build_snapshot" : false,
"lucene_version" : "8.7.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}"
Connection with Elasticsearch is connected:
And the index give me no errors:
But in the category in the front end I keep getting this message:
"We can't find products matching the selection."
your screenshots are not visible, try adding them on some cloud based site and share url.
Or create a new category, create few products and assign those products to that category and then check if that specific category is working or not.
if that newly created category is working then it's issue with those category else it;s issue with your elasticsearch configurations.
First screenshot is:
Second is:
I have also tried to make a new category and products but same results, the strange thing is when I do search it appears with (ammount) behind it and also the filter shows how many products are in this category but in the page in the category itself it shows the same message.
How would I see what the problem would be if it is elasticsearch?
@Lightme ,
if you are getting results while searching then the elasticsearch connection is fine.
this is something else which is causing this trouble.
Did you try to flush magento cache and browser cache ?
also did you check error logs inside var/log/ folder ?
Yes, I flushed the cache and did the reindex. In the log which file I have to refear to exactly there are 6 files?
What I am seeing also now all of sudden is this error now in the back-end:
"
I think I found the problem what is kind of wierd.
I created a new Source and a new Stock that triggered something, now I see the products...
What a strange way of solving a problem! But happy I finally solved it.