Magento 2:重新索引无法正常工作 [英] Magento 2: reindexing is not working
问题描述
我无法在 magento 2 中进行重新索引.谷歌之后,我得到的解决方案是我们可以使用shell命令
I'm not able to do reindexing in magento 2. After google I get the solution that We can reindex with shell command
php dev/shell/indexer.php reindexall
但是它给出了错误
Could not open input file: dev/shell/indexer.php
我在 dev 中看不到 shell 文件夹.
As I can't see shell folder within dev.
推荐答案
通过终端从magento根触发此命令
全部重新编制索引: php bin/magento indexer:reindex
reindex perticuler: php bin/magento indexer:reindex indexer_name
reindex perticuler : php bin/magento indexer:reindex indexer_name
indexer_name 应该在哪里 catalog_category_product,catalog_product_category,catalog_product_price,catalog_product_attribute,catalog库存_库存,catalogrule_rule,catalogrule_product,catalogsearch_fulltext.
Where indexer_name Should be catalog_category_product,catalog_product_category,catalog_product_price,catalog_product_attribute,cataloginventory_stock,catalogrule_rule,catalogrule_product,catalogsearch_fulltext.
这篇关于Magento 2:重新索引无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!