Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento 2: reindexing is not working

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.

like image 896
Ramesh Kumar Avatar asked Nov 02 '15 13:11

Ramesh Kumar


2 Answers

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.

like image 174
Pratik Kamani Avatar answered Sep 28 '22 10:09

Pratik Kamani


In your root magento directory type this:

php bin/magento indexer:reindex

This will perform a full reindex. If you wish to reindex only one of the indexers, command is as follows:

php bin/magento indexer:reindex indexer_name

where indexer_name can be found by typing:

php bin/magento indexer:info

like image 21
VIPIN A ROY Avatar answered Sep 28 '22 12:09

VIPIN A ROY