Model
Indexer
Magento\Indexer\Model\Indexer
What it does
This class represents an individual indexer in Magento 2, managing the full lifecycle of index operations including reindexing, validation, and scheduling.
Developers use this class to trigger full reindexes, invalidate indexes, check indexer status, or switch between scheduled and on-save indexing modes.
It handles both full reindexing and partial updates for single rows or lists of IDs.
Public Methods
- getId()
- setId()
- setIdFieldName()
- getIdFieldName()
- getViewId()
- getActionClass()
- getTitle()
- getDescription()
- getFields()
- getSources()
- getHandlers()
- load()
- getView()
- getState()
- setState()
- isScheduled()
- setScheduled()
- isValid()
- isInvalid()
- isSuspended()
- isWorking()
- invalidate()
- getStatus()
- getLatestUpdated()
- reindexAll()
- reindexRow()
- reindexList()