|
|
2 anni fa | |
|---|---|---|
| .. | ||
| App | 2 anni fa | |
| Block/Backend | 2 anni fa | |
| Console/Command | 2 anni fa | |
| Controller/Adminhtml | 2 anni fa | |
| Cron | 2 anni fa | |
| Model | 2 anni fa | |
| Setup | 2 anni fa | |
| Test | 2 anni fa | |
| Ui/DataProvider/Indexer | 2 anni fa | |
| etc | 2 anni fa | |
| i18n | 2 anni fa | |
| view/adminhtml/layout | 2 anni fa | |
| LICENSE.txt | 2 anni fa | |
| LICENSE_AFL.txt | 2 anni fa | |
| README.md | 2 anni fa | |
| composer.json | 2 anni fa | |
| registration.php | 2 anni fa | |
This module provides Magento Indexing functionality. It allows to:
The Magento_Indexer module is one of the base Magento 2 modules. You cannot disable or uninstall this module.
This module is dependent on the following modules:
Magento_StoreMagento_AdminNotificationThe Magento_Indexer module creates the following tables in the database:
indexer_statemview_stateFor information about a module installation in Magento 2, see Enable or disable modules.
App/ - the directory that contains launch application entry point.
For information about a typical file structure of a module in Magento 2, see Module file structure.
Extension developers can interact with the Magento_Indexer module. For more information about the Magento extension mechanism, see Magento plugins.
The Magento dependency injection mechanism enables you to override the functionality of the Magento_Indexer module.
The module dispatches the following events:
clean_cache_by_tags event in the \Magento\Indexer\Model\Indexer\CacheCleaner::cleanCache method. Parameters:
object is a cacheContext object (Magento\Framework\Indexer\CacheContext class)clean_cache_after_reindex event in the \Magento\Indexer\Model\Processor\CleanCache::afterUpdateMview method. Parameters:
object is a context object (Magento\Framework\Indexer\CacheContext class)clean_cache_by_tags event in the \Magento\Indexer\Model\Processor\CleanCache::afterReindexAllInvalid method. Parameters:
object is a context object (Magento\Framework\Indexer\CacheContext class)For information about an event in Magento 2, see Events and observers.
This module introduces the following layout handles in the view/adminhtml/layout directory:
indexer_indexer_listindexer_indexer_list_gridFor more information about layouts in Magento 2, see the Layout documentation.
There are 2 modes of the Indexers:
Magento_Indexers provides console commands:
bin/magento indexer:info - view a list of all indexersbin/magento indexer:status [indexer] - view index statusbin/magento indexer:reindex [indexer] - run reindexbin/magento indexer:reset [indexer] - reset indexersbin/magento indexer:show-mode [indexer] - view the current indexer configurationbin/magento indexer:set-mode {realtime|schedule} [indexer] - specify the indexer configurationbin/magento indexer:set-dimensions-mode [indexer] - set indexer dimension modebin/magento indexer:show-dimensions-mode [indexer] - set indexer dimension modeCron group configuration can be set at etc/crontab.xml:
indexer_reindex_all_invalid - regenerate indexes for all invalid indexersindexer_update_all_views - update indexer viewsindexer_clean_all_changelogs - clean indexer view changelogsLearn how to configure and run cron in Magento..
More information can get at articles: