Log in
Model

IndexBuilder

Magento\CatalogRule\Model\Indexer\IndexBuilder

What it does

IndexBuilder is responsible for rebuilding the catalog price rule index in Magento 2.

Developers use this class to reindex catalog rules either for specific products (by ID), multiple products (by IDs), or perform a full reindex of all catalog rules.

It's typically called automatically by Magento's indexer system when catalog rules are modified or products are updated.

Public Methods

  • reindexById()
  • reindexByIds()
  • reindexFull()