From 5ec89e56e87d63c06c538c1f55a96f0d05387081 Mon Sep 17 00:00:00 2001 From: Mohamed ELIDRISSI <67818913+elidrissidev@users.noreply.github.com> Date: Wed, 31 Aug 2022 11:18:58 +0100 Subject: [PATCH] Get catalog search result collection from engine --- app/code/core/Mage/CatalogSearch/Model/Layer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/CatalogSearch/Model/Layer.php b/app/code/core/Mage/CatalogSearch/Model/Layer.php index 99ffd3e4686..a3e3db36107 100644 --- a/app/code/core/Mage/CatalogSearch/Model/Layer.php +++ b/app/code/core/Mage/CatalogSearch/Model/Layer.php @@ -37,7 +37,7 @@ public function getProductCollection() if (isset($this->_productCollections[$this->getCurrentCategory()->getId()])) { $collection = $this->_productCollections[$this->getCurrentCategory()->getId()]; } else { - $collection = Mage::getResourceModel('catalogsearch/fulltext_collection'); + $collection = Mage::helper('catalogsearch')->getEngine()->getResultCollection(); $this->prepareProductCollection($collection); $this->_productCollections[$this->getCurrentCategory()->getId()] = $collection; }