Magento: Run index management from command line
First, go to the directory MagentoRoot/shell
[code language=”shell”]
cd $MageROOT/shell
[/code]
Get the status of reindexing processes
[code language=”shell”]
php indexer.php –status
[/code]
To reindex all indexes.
[code language=”shell”]
php indexer.php –reindexall
[/code]
To reindex individual index one by one
[code language=”php”]
php indexer.php –reindex catalog_product_attribute #Product Attributes
php indexer.php –reindex catalog_product_price #Product Prices
php indexer.php –reindex catalog_url #Catalog Url Rewrites
php indexer.php –reindex catalog_product_flat #Product Flat Data
php indexer.php –reindex catalog_category_flat #Category Flat Data
php indexer.php –reindex catalog_category_product #Category Products
php indexer.php –reindex catalogsearch_fulltext #Catalog Search Index
php indexer.php –reindex cataloginventory_stock #Stock Status
[/code]
These reindex can also be scheduled to run as a cron job.
Search within Codexpedia

Search the entire web
