All About Magento 2: Indexing/reindexing

[Do not forget to search this site to learn/find related information]

# Use reset to reset current indexing status
# You may not need to use this all the time
# You will need to use this when you see invalid indexing status or you see index locked;
# When irrespective of that, you want to reindex, reset first

sudo php bin/magento indexer:reset

# want to see reset status of all indexes use the command below
sudo php bin/magento indexer:status [indexer]

# to see status of one index
sudo php bin/magento indexer:status [index name, one from the list given at the end]

# to check information and status on indexing/reindexing
sudo php bin/magento indexer:info

# execute the reindex: i.e. reindex
sudo php bin/magento indexer:reindex

# you might find these commands useful

# i.e. when to reindex such as real-time (update on save) or by “Schedule and cron”

sudo php bin/magento indexer:show-mode
sudo php bin/magento indexer:show-mode [indexer]
sudo php bin/magento indexer:set-mode {realtime|schedule} [indexer]

# the index types are provided below. If you just want to work with one of them, use the term from the below list
and put on the right side of each of the command above

# 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
# cataloginventory_stock Stock
# inventory Inventory
# catalogrule_product Catalog Product Rule
# catalog_product_price Product Price
# scconnector_google_remove Google Product Removal Feed
# scconnector_google_feed Google Product Feed
# catalogsearch_fulltext Catalog Search

###### If you want to configure from the admin menu, use: System -> index and then do as the image below shows:

***. ***. ***

Note: Older short-notes from this site are posted on Medium: https://medium.com/@SayedAhmedCanada

*** . *** *** . *** . *** . ***
Sayed Ahmed

BSc. Eng. in Comp. Sc. & Eng. (BUET)
MSc. in Comp. Sc. (U of Manitoba, Canada)
MSc. in Data Science and Analytics (Ryerson University, Canada)
Linkedin: https://ca.linkedin.com/in/sayedjustetc

Blog: http://Bangla.SaLearningSchool.com, http://SitesTree.com
Training Courses: http://Training.SitesTree.com
8112223 Canada Inc/Justetc: http://JustEtc.net

Facebook Groups/Forums to discuss (Q & A):
https://www.facebook.com/banglasalearningschool
https://www.facebook.com/justetcsocial

Get access to courses on Big Data, Data Science, AI, Cloud, Linux, System Admin, Web Development and Misc. related. Also, create your own course to sell to others. http://sitestree.com/training/