Skip to content

Instantly share code, notes, and snippets.

@thor48
Created November 22, 2016 13:24
Show Gist options
  • Save thor48/bca99dc391b3f48aab3a03c1cff1f92f to your computer and use it in GitHub Desktop.
Save thor48/bca99dc391b3f48aab3a03c1cff1f92f to your computer and use it in GitHub Desktop.
1 – Go to ‘shell’ folder in your Magento installation:
cd shell
2 – Execute reindex using this command:
php -f indexer.php reindexall
It is possible to get full list of Magento indexer commands using this command:
php -f indexer.php help
To get a list of available indexes, execute this command:
php -f indexer.php info
By default there are 8 indexes in Magento:
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
Individual commands for re-indexing:
php indexer.php --reindex catalog_product_attribute
php indexer.php --reindex catalog_product_price
php indexer.php --reindex catalog_url
php indexer.php --reindex catalog_product_flat
php indexer.php --reindex catalog_category_flat
php indexer.php --reindex catalog_category_product
php indexer.php --reindex catalogsearch_fulltext
php indexer.php --reindex cataloginventory_stock
php indexer.php --reindex tag_summary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment