Magento – Magento Search returns no product after 1.9.3.1 upgrade

cachemagento-1.9productsreindexsearch

I've just upgraded my store from 1.9.3 (which had a glitch in the search that showed all products when searching) to 1.9.3.1, and now the search shows no products.

What I've tried:

  • Roolback the file app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext.php to version 1.9.3 and 1.9.2.4
  • Cleared Cache
  • Reindexed
  • Changed folder permissions

When I retore the files from version 1.9.3 the search start "working" again (showing all the products)

The only search module I use is one that show proviews of the products, and this module is working fine.

Thanks all!

Best Answer

After upgrading from 1.9.2.4 to 1.9.3.1 I had a similar problem and I have just fixed it.

In my case the rendering of the whole page stopped after the header. That means, no product related to the search was shown and e.g. the footer wasn't rendered, as well.

I had a modified Fulltext.php in app/code/local/Mage/CatalogSearch/Model/Resource which had some minor changes in the prepareResult() function. I diffed my local file, the one from 1.9.2.4 and the one from 1.9.3.1. I recognized that a new protected class variable called $_foundData and additionally the getter for this variable was introduced in 1.9.3.1. I added both to my local file and after that the page was correctly rendering again, but still no product related to the search was shown.

That was, because of several changes happened in the prepareResult() function from 1.9.2.4 to 1.9.3.1. I applied the changes to my local file and now the catalog search is working fine again.

If this does not solve your problem, take a look at the other changes of the CatalogSearch module that happened from 1.9.2.4/1.9.3 to 1.9.3.1. Maybe you override other files of this module or use an extension that overrides files of this module.

Related Topic