- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
reindex
April 17, 2015
Reindexing is an option to rebuilt data stored under the index table in the database.
Why do we need implementing this? An index becomes corrupted and no longer contains a valid data. So, reindexing works as a sort of recovery method. It allows replacing the old copy of the index with a new update.
Reindex can be performed with 2 ways. The first one is to use admin panel tools (if your engine allows it, like Magento). There you should navigate to System -> Index Management to perform it.
Feel free to check out the tutorial on how to re-index data and in what cases it is needed.
Alternative way is to update index through the command line. The command to check the current status of all indices is:
php /your-magento-path/shell/indexer.php -status
To run indexer on any indices, you have to run command like this:
php /your-magento-path//shell/indexer.php --reindex catalog_product_price
Or
php /your-magento-path//shell/indexer.php --reindex cataloginventory_stock