Question

I need to create an observer in Magento that listens for the event that is called when someone re-indexes the Catalog Search Index.

So which event is called when someone indexes Catalog Search Index? Thanks?

Edit: I am looking at the event: catalogindex_plain_reindex_after

Would this be the correct one?

http://www.magentocommerce.com/wiki/5_-_modules_and_development/reference/events

Was it helpful?

Solution

I would recommend running this grep from command line and building out an events txt file of available events you can hook into. That list may be pretty dated you linked.

grep -r Mage::dispatchEvent /path/to/your/Magento/* > events.txt

OTHER TIPS

If you need an observer on a certain page, you can uncomment the Varien_Profiler in index.php and enable it in the Developer section of the config. Once it is enabled you should see a table on the bottom of your page with everything that happened on that page. Look for DISPATCH EVENT:.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top