How to reindex “Catalog Search Index” via script

Sometimes we have problem of reindexing via magento’s admin such as latency, we prefer doing it directly via script.

1. create a php file search_index.php at your magento’s root folder

2. execute it

TIP: if you are having trouble of initializing indexer but you still want to do it while finding the problem, you can comment these lines temporarily in /app/code/core/Mage/Index/Model/Process.php


Leave a Reply