Magento2 how to reindex

Here is how to reindex magento 2 from command line.You can not reindex from admin web.

  • Goto command Line (SSH or Terminal)
  • Goto Root directory of your magento 2 installation
  • To reindex all magento 2 index fire following command
    php bin/magento indexer:reindex

 

  • To reindex specific indexing use following
  1. catalog_category_product
  2. catalog_product_category
  3. catalog_product_price
  4. catalog_product_attribute
  5. cataloginventory_stock
  6. catalogrule_rule
  7. catalogrule_product
  8. catalogsearch_fulltext

For specific re-indexing for example catelog product reindex

php bin/magento indexer:reindex catalog_category_product

See Video Here For Visual explanation


Thats all