Magento 2 Re-indexing

Introduction To Magento 2 Re-indexing

Index Management is one of key feature in Magento 2. Whenever one or more items are changed, Magento 2 will reindex automatically. This data can be reindexed include creating catalog or shopping cart price rules, price changes, adding new categories, and some other data. Re-indexing is performed as a background process, and your store remains accessible during Magento 2 index management.

 

Magento 2 Re-indexing Type:

  • Define Config Data
  • Customer Grid
  • Category products;
  • Product categories;
  • Product price;
  • Product entity attribute value;
  • Stock;
  • Catalog rule product;
  • Catalog product rule;
  • Catalog search.

Magento 2 Re-indexing Mothods:

 

Mostly two ways are used to re indexing data in Magento 2. One is using admin panel and second is executing commands in terminal.

 

Admin Index Management:

Go to System > Index Management and check indexers status, if it required, select that one and perform required action against that indexer.

Magento 2 Index

 

Command Line Index Management:

 

  •  run the command php bin/magento indexer:reindex

it will show the similar type result as below:

Design Config Grid index has been rebuilt successfully in 00:00:00

Customer Grid index has been rebuilt successfully in 00:00:00

Category Products index has been rebuilt successfully in 00:00:00

Product Categories index has been rebuilt successfully in 00:00:00

Product Price index has been rebuilt successfully in 00:00:01

Product EAV index has been rebuilt successfully in 00:00:01

Catalog Search index has been rebuilt successfully in 00:00:01

Stock index has been rebuilt successfully in 00:00:00

Catalog Rule Product index has been rebuilt successfully in 00:00:01

Catalog Product Rule index has been rebuilt successfully in 00:00:00

 

  • run the command php bin/magento indexer:status

It  will display a similar result as presented below:

Design Config Grid:                                Ready

Customer Grid:                                      Ready

Category Products:                                 Ready

Product Categories:                                Ready

Product Price:                                        Ready

Product EAV:                                         Ready

Catalog Search:                                     Ready

Stock:                                                   Ready

Catalog Rule Product:                             Reindex required

Catalog Product Rule:                             Ready

 

This is just basic idea of index management in Magento 2.

(Visited 13 times, 1 visits today)