What is Magento Reindex?
Simply put, Magento 2 reindex is to inform bots of the search engines about your new or updated information on your site. That way, you can rest assured that online visitors will always see the latest news.
It is very important, obviously!
However, Magento is known for its sophisticated architecture, systems based on this platform carry a lot of merchant’s data. This makes your website fails to check the newest updates. For example, catalog info, product prices, sales prices, coupons,etc., all both gather and are distributed in many database tables.
To optimize the display at the frontend, the most essential information is stored within special tables using indexers that collecting the data. In many cases, as consequences, a Magento website admin should keep the indexes up-to-date to present actual data on the storefront.
Thus, in this article, we will deliver a quick guide on Magento 2 how to reindex?
When Is Magento Reindex Required?
In Magento 2, there are eight indexers required, when any changes are made.
- Category products;
- Product categories;
- Product price;
- Product entity attribute value;
- Catalog rule product;
- Catalog product rule;
- Catalog search.
An example of Magento 2 reindex is, when adjusting a product price, the data should be reindexed to be correctly displayed on the frontend. So, “reindex the indexation” would adequately reduce time spent on calculating a final order price including cart price rules, bundle pricing, discounts, tier pricing, etc.
In older Magento versions, indexation is dependent on the indexer.php file placed under the shell folder. In Magento 2 it’s managed by the bin/magento instead.
Magento 2 How to Reindex in 2 Ways
You can do Magento 2 reindex command line or from the admin panel. Each has pros and cons.
Reindex data using the command line
The first method is to do Magento 2 reindex command line.
If you are not on a shared hosting server then it’s likely that you’d be given SHELL access. You should do the following to update the index via Magento CLI.
- Log in to your Magento Shell
- Go to your Magento root directory
- Run the following: PHP bin/Magento indexer:reindex
Reindex data from admin panel
Next, another choice to make Magento reindex for the admin is from Admin Panel. Admin can go to Magento Index Management under System, then select the options. Once selected, change the Index method from “Update on Schedule” to “Update on Save”. Update on save will update indexes whenever you complete an action in Magento which requires index update.
Magento 2 Reindex from Backend Extension
TRIGGER reindexing NOW with Reindex from Backend for Magento 2 extension – TOTALLY FREE.
While the technique of Magento 2 reindex command line is quite time-consuming. On the other hand, the two options for how to reindex in Magento 2 admin panel (update on save and update on schedule) show some drawbacks. For instance, the “update on save” mode will fire some (indexing related) events after a product is saved. So, a full Magento reindex won’t be necessary after product updates. Meanwhile, “update on schedule” mode won’t fire anything, but you’ll need to reindex everything in order to see some changes in the frontend.
Reindex from Backend for Magento 2 extension would be an effective tool. In Magento Index Management at the backend, after choosing the indexers, Reindex Data is now available in Actions box for admin to choose.
Just a click on Submit and all your data is now ready, clean and bright.
After reindexing is finished, an announcement will be displayed to confirm again about the process.
This extension could optimize the Magent 2 reindex command. Instead of using CLI, admin now can configure it on the admin panel. At the same time, all admins understand that reindexing helps the massive data of Magento run smoothly when changes are made.
Hence, we genuinely hope that this FREE Magento 2 module can be a supportive tool for any store owner.
Here is what we think you should know about how to reindex in Magento 2. In case you have any further questions regarding this blog, Website Development or our extension store on Magento 1 and Magento 2, please feel free to contact us. Our support team is always willing to aid you with the best service of FREE installation, FREE update, FREE 1-year support, and 30-day money-back guarantee.
About BSS Commerce:
BSS Commerce is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bring high-quality products and services to optimize our business effectively. CONTACT NOW to let us know your problems. We are willing to support you every time.