Skip to content

Instantly share code, notes, and snippets.

@ivanproskuryakov
Last active August 29, 2015 14:03
Show Gist options
  • Save ivanproskuryakov/696c53c67235e4db274b to your computer and use it in GitHub Desktop.
Save ivanproskuryakov/696c53c67235e4db274b to your computer and use it in GitHub Desktop.
Indexing magento
php indexer.php --status
php indexer.php --reindex catalog_product_price
Here catalog_product_price is the index type that you want to rebuild. You can use next arguments for different types of indexes:
catalog_product_attribute Product Attributes
catalog_product_price Product Prices
catalog_url Catalog Url Rewrites
catalog_product_flat Product Flat Data
catalog_category_flat Category Flat Data
catalog_category_product Category Products
catalogsearch_fulltext Catalog Search Index
cataloginventory_stock Stock status
For example if you want to process url rewrites index you should use the following command:
php indexer.php --reindex catalog_url
nohup php indexer.php --reindex catalog_product_price &
php indexer.php --reindexall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment