After upgrading to Magento 1.3.2.1, the search feature stopped working. I rebuilt the indexes but still no search results. I traced through the code and found that the new version filters out uncategorized products (products not assigned to a category). To revert to the old functionality modify the addVisibleInSearchFilterToCollection function in app/code/core/Mage/Catalog/Model/Product/Visibility.php (around line 80):
public function addVisibleInSearchFilterToCollection(Mage_Eav_Model_Entity_Collection_Abstract $collection)
{
//$collection->setVisibility($this->getVisibleInSearchIds());
//$collection->addAttributeToFilter('visibility', array('in'=>$this->getVisibleInSearchIds()));
return $this;
}
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.