MagentoMagento 2

How to Reindex Magento 2

Magento 2 no longer provides the ability to initiate a reindex via the administration panel and instead requires that a properly setup cron job is setup. However, you are still able to manually reindex a Magento 2 store via SSH from the store root with the following command:

$ bin/magento indexer:reindex

Or to reindex only a specific index such as catalog_product_price you can use the following command:

bin/magento indexer:reindex catalog_product_price

Note: Some web hosts will require that all SSH commands for your Magento 2 store be run with the PHP user(generally named php) and not root access in which case use the following command:

php bin/magento indexer:reindex

If you do not want to reindex all available indexes in the Magento 2 store, or wish to view available indexes run the following SSH command:

$ bin/magento indexer:info

The default list of available indexes for Magento 2 is as follows:

design_config_grid                       Design Config Grid
customer_grid                            Customer Grid
catalog_category_product                 Category Products
catalog_product_category                 Product Categories
catalogrule_rule                         Catalog Rule Product
catalog_product_attribute                Product EAV
inventory                                Inventory
catalogrule_product                      Catalog Product Rule
cataloginventory_stock                   Stock
catalog_product_price                    Product Price
catalogsearch_fulltext                   Catalog Search

If you want to see the status of any or all of the available Magento 2 indexes run the following commands:

For all available indexes

$ bin/magento indexer:info

For a specific index, for example catalog_product_price:

$ bin/magento indexer:status catalog_product_price

 

Hans-Eirik Hanifl

Hans-Eirik Hanifl is a forward thinking e-commerce and marketing consultant. As an advocate for the free exchange of knowledge, he founded E-Commerce Gorilla as a place where like-minded individuals can ask questions and share their expertise on practical solutions in the area of e-commerce and marketing. He is the owner of TRM Marketing and an avid supporter of the open source community.

Related Articles

Leave a Reply

Back to top button
Sign up to the E-Commerce Gorilla newsletter for updates & special promotions.
Join Our Newsletter
SUBSCRIBE
We value your privacy and protect your information like our own. Unsubscribe at anytime.