如何在 Magerun 中从 index:reindex:all 跳过 "Catalog URL Rewrites"

How to skip "Catalog URL Rewrites" from index:reindex:all in Magerun

我正在使用 mage运行 为我的 magento 商店建立索引 运行。我正在使用以下命令

/usr/local/bin/magerun --root-dir=/var/www/html/store index:reindex:all

上述命令完美运行,但我的要求是使用 index:reindex:all 命令跳过“Catalog URL Rewrites”。

是否可以在 reindex:all 命令中跳过单个索引?

mage运行有没有提供command/parameter跳过任何索引?

//我认为您需要 运行 目录产品价格的特定索引。

php /your-magento-path//shell/indexer.php --reindex catalog_product_price

Reference link

这是跳过特定索引的解决方案

/usr/local/bin/magerun --root-dir=/var/www/html/store index:reindex catalog_product_attribute,catalog_url,catalog_product_flat,catalog_category_flat,catalog_category_product,catalogsearch_fulltext,cataloginventory_stock

我们可以在index:reindex之后传递参数,逗号分隔