In Magento 1.x, store owner can directly do reindex from Index management. But in Magento 2.x there is no direct options available for Reindex from backend.
As Magento 2.x provides reindex using command line. So lets discuss about how to do reindex using command line.
If you need to do whole index management in the Magento 2.x store, then you have to run the following command.
First go to magento root directory, then run below command to apply reindex to whole store.
1 | php bin/magento indexer:reindex |
But what if you want to reindex specific indexer. for that you will need list of the indexer name. You will get the list of indexer using below command.
In root directory run below command,
1 | php bin/magento indexer:info |
Now you have list of all the indexer available, so you can run command for specific indexer.
To run single reindex command,
1 | php bin/magento indexer:reindex indexer_name |
here [indexer_name] means name of the indexer which you received from ‘indexer:info’ command.
Let me know your comments at below and help me to improve this post and help more and more to Magento 2.x developer.
May 7, 2020 at 3:01 pm
It’s a really useful blog. Thank you!