Log in
Model

State

Magento\CatalogSearch\Model\Indexer\Scope\State

What it does

This class manages the state of which database table to use during catalog search indexing - either the main production table or a temporary table.

Developers would use this to control whether indexing operations should directly modify the active search index or work on a separate temporary table first, which is useful for minimizing downtime during reindexing operations.

Public Methods

  • useTemporaryIndex()
  • useRegularIndex()
  • getState()