adolmedia - 02 June 2010 07:49 AM
Hi everyone,
For peoples facing problem with Catalog product fulltext search re-indexing with error message
“Some problem with reindexing process.” or “Can’t initialize indexer process”,
please find below the fix.
Create a file called “search-reindex.php” inside your magento root folder and put the following code.
<?php
require_once 'app/Mage.php';
umask( 0 );
Mage :: app( "default" );
Mage::log("Started Rebuilding Search Index At: " . date("d/m/y h:i:s"));
$sql = "truncate catalogsearch_fulltext;";
$mysqli = Mage::getSingleton('core/resource')->getConnection('core_write');
$mysqli->query($sql);
$process = Mage::getModel('index/process')->load(7);
$process->reindexAll();
Mage::log("Finished Rebuilding Search Index At: " . date("d/m/y h:i:s"));
Then run this script by visiting www.yourdomain.com/search-reindex.php in your browser.
That’s it. It will now work like a charm.
Regards,
Rahman - AdolMedia