I was installing some e-commerce tagging for a customer (cart.phtml
and view.phtml
) and after doing some regression testing it was found that the full-text search function was not working. This function was not tested prior to work commencing so it is not clear whether I can rule out my changes at this time.
The error that is being reported is:
Fatal error: Call to undefined method Mage_CatalogSearch_Model_Resource_Fulltext::getFoundData() in app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext/Collection.php on line 148
I definitely didn't touch this script at all, but one thing I didn't do was a test if the search was working in the first place. The relevant source code from this script is:
public function getFoundIds()
{
if (is_null($this->_foundData)) {
/** @var Mage_CatalogSearch_Model_Fulltext $preparedResult */
$preparedResult = Mage::getSingleton('catalogsearch/fulltext');
$preparedResult->prepareResult();
$this->_foundData = $preparedResult->getResource()->getFoundData();
}
if (isset($this->_orders[self::RELEVANCE_ORDER_NAME])) {
$this->_resortFoundDataByRelevance();
}
return array_keys($this->_foundData);
}
Searching for errors relating to this class and getFoundData()
have not been fruitful.
This does not appear to be the same issue as Magento 1.9.3: every product is displayed in the search in full text mode as I am not seeing any search results.