After changing a few products or categories directly in the database or by an import, a full reindex of the store can take a long time. Index Partial lets an agency or developer update the indexes only for the records that were changed, and rebuild the URL rewrites of single products or categories. It also improves the URL keys of German stores.
Features
bin/magento indexer:partial-indexerreindexes selected indexes for specific records only, optionally for a single store. Supported are the indexes for stock, inventory, search, prices, product attributes, category assignments, flat tables and catalog URLs.bin/magento indexer:url-rewrite:productrebuilds the URL rewrites of all products or of the given products.bin/magento indexer:url-rewrite:categoryrebuilds the URL rewrites of the given categories.- German umlauts in generated URL keys are written as “ae”, “oe”, “ue” and “ss” (for example “Bürostühle” becomes “buerostuehle”) instead of “a”, “o” and “u”.
- Building blocks for other modules and import routines that want to update indexes directly for the records they changed.
Configuration
There is nothing to configure. The commands are available right after installation, and the umlaut rule applies to URL keys generated from then on.
Good to know
The commands are meant for agencies and developers who manage a store on the command line. Existing URL keys are not changed until they are generated again.
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-index-partialThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.