Magento 2: reindexing is not working

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.


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


Using command prompt,

go to your Magento root directory.

cd your_magento_directory

Then run following command

php bin/magento indexer:reindex

If you want to do reindex specifically, then your comment will be:

php bin/magento indexer:reindex [indexer]