Skip to content

Commit e83f359

Browse files
authored
Get catalog search result collection from engine (#2634)
1 parent 9608e10 commit e83f359

File tree

1 file changed

+1
-1
lines changed
  • app/code/core/Mage/CatalogSearch/Model

1 file changed

+1
-1
lines changed

app/code/core/Mage/CatalogSearch/Model/Layer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getProductCollection()
3737
if (isset($this->_productCollections[$this->getCurrentCategory()->getId()])) {
3838
$collection = $this->_productCollections[$this->getCurrentCategory()->getId()];
3939
} else {
40-
$collection = Mage::getResourceModel('catalogsearch/fulltext_collection');
40+
$collection = Mage::helper('catalogsearch')->getEngine()->getResultCollection();
4141
$this->prepareProductCollection($collection);
4242
$this->_productCollections[$this->getCurrentCategory()->getId()] = $collection;
4343
}

0 commit comments

Comments
 (0)