A command indexer:reset
used to reset indexing.
Well, indexer:reset command reset all indexes but for particular index, need to use code-of-index and follow below steps to achieve it.
Run below command from terminal which will gives you code and name of indexes.
1 |
php bin/magento indexer:info |
Output :
1 2 3 4 5 6 7 8 9 10 |
design_config_grid Design Config Grid customer_grid Customer Grid catalog_category_product Category Products catalog_product_category Product Categories catalog_product_price Product Price catalog_product_attribute Product EAV catalogsearch_fulltext Catalog Search cataloginventory_stock Stock catalogrule_rule Catalog Rule Product catalogrule_product Catalog Product Rule |
To reset particular index (e.g. catalog_product_price) run the following command from terminal:
1 |
php bin/magento indexer:reset catalog_product_price |
For multiple indexes to reset at same time (e.g catalog_product_price and customer_grid) we will use whitespace between two indexes-code.
1 |
php bin/magento indexer:reset catalog_product_price customer_grid |