Since Magento EE 13.1 doesn't allow a full reindex in backend I developed an extension which provides a "Shell reindex" button in backend (on index management page) and suppose to run a full reindex. But it seems the "full reindex" will not be triggered, only product attributes seemed to be updated. Can anyone help me? Whats wrong with my module?

Thank you for everyone's help.


require_once 'Mage/Index/controllers/Adminhtml/ProcessController.php';
class MyModule_ShellIndexer_Adminhtml_ProcessController extends    Mage_Index_Adminhtml_ProcessController {
public function shellAction() {
    $process = Mage::getSingleton('index/indexer');

    $indexingProcesses = Mage::getSingleton('index/indexer')->getProcessesCollection(); 

    foreach ($indexingProcesses as $process) {



    class MyModule_ShellIndexer_Block_Adminhtml_Process extends Enterprise_Index_Block_Adminhtml_Process {
    public function __construct()
    $this->_blockGroup = 'enterprise_index';
    $this->_controller = 'adminhtml_process';
    $this->_headerText = Mage::helper('index')->__('Index Management');


    $url = Mage::helper("adminhtml")->getUrl("/process/shell");
    $script = "new Ajax.Request('".$url."',{method:'post'});";
     $this->_addButton('Shell ReIndex', array(
                      'label' => Mage::helper('index')->__('Shell Re-Index'),
                      'onclick' => $script,
                      'class' => 'save',
            ), -100);


etc/config.xml (not relevant for the issue, but if anyone wants to rebuild the extension)

   <?xml version="1.0"?>

                    <MyModule_ShellIndexer before="Mage_Index_Adminhtml">MyModule_ShellIndexer_Adminhtml</MyModule_ShellIndexer>


1 Answer 1


Try the following snippet for reindexing everything through php.

/* @var $indexCollection Mage_Index_Model_Resource_Process_Collection */
$indexCollection = Mage::getModel('index/process')->getCollection();
foreach ($indexCollection as $index) {
    /* @var $index Mage_Index_Model_Process */

This will simply loop through all the index processes and then call reindex on the process.

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.