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');
            $this->_foundData = $preparedResult->getResource()->getFoundData();
        if (isset($this->_orders[self::RELEVANCE_ORDER_NAME])) {
        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.


1 Answer 1


A little late to the show but maybe this can help others. We had the same error after our -> upgrade. This is a call to the getFoundData method within Fulltext.php. We happened to have a custom version of Fulltext.php in our /local code base which was based on This custom version does not contain the getFoundData method. Removed the /local version and the search works fine. Now trying to figure out why we needed a custom version in the first place!

  • 1
    Thanks, this was the exact issue we had as well on a migrated site that we upgraded. The store's reason for running a local Fulltext.php was for a hack to match keywords with "AND" instead of "OR" conditions
    – sduif
    May 4, 2018 at 10:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.