使用命令行或Shell重新索引magento

时间:2016-05-26 12:39:41

标签: magento-1.9 reindex

我已经看过一些关于重新索引magento的教程。用命令行,shell,ssh。但我对magento并不是很好。我想通过shell重新索引一些解释> indexer.php。(如何执行命令)。如果您向我解释本教程,我将非常感谢您。(This tutorial)谢谢。

1 个答案:

答案 0 :(得分:0)

Well the tutorial itself explains everything, still let me try if I can help:-

Indexing works fast when executed via shell and we need not to wait on browser.
To execute command first you need to reach via shell folder then you can execute all the below suggested command.

You need to simply mention 
php  indexer.php --reindex NameOFIndexer.
Example:- to index attributes of product(php indexer.php --reindex catalog_product_attribute)

Name of Indexer is the list you must be seeing in admin panel,here it follows:-
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

To get the list of all indexers you can write following on cmd:-
php indexer.php info

Apart from above method you can tell Magento to reindex all the indexer in a single go by following command:-
php indexer.php --reindexall