登陆 Magento 后台看到提示 Index 没有刷新,看到 Catalog Search Index 的状态一直为 Pending,手动刷新提示错误:Catalog Search Index Index process is working now. Please try run this process later.
解决办法:
方法一、选择全部 Index 进行刷新;
方法二、使用 SSH 登陆,进入magento 网站目录下的 shell 目录,执行相关命令:
# cd /magento网站目录/shell
# php indexer.php --reindex catalogsearch_fulltext
Solr Index was rebuilt in 4.75 seconds.
Catalog Search Index index was rebuilt successfully in 00:02:08
各 Index 对应如下:
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 Product
|
catalogsearch_fulltext
|
Catalog Search Index
|
cataloginventory_stock
|
Stock status |
当然你也可以刷新全部 Index:
# php -f indexer.php reindexall