Magento 2: reindexing is not working

Ramesh Kumar picture Ramesh Kumar · Nov 2, 2015 · Viewed 22.3k times · Source

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

But it's giving error

Could not open input file: dev/shell/indexer.php

As I can't see shell folder within dev.

Answer

Pratik Kamani picture Pratik Kamani · Dec 4, 2015

fire this command from magento root via terminal

reindex all : php bin/magento indexer:reindex

reindex perticuler : php bin/magento indexer:reindex indexer_name

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.