Log in
Interface

IndexSwitcherInterface

Magento\CatalogSearch\Model\Indexer\IndexSwitcherInterface

What it does

This interface defines the contract for switching between main and temporary search indexes in Magento 2.

Developers would implement this interface when creating custom indexing strategies that need to atomically replace the active search index with a newly built temporary one.

Note that this is deprecated as MySQL search has been removed in favor of Elasticsearch.

Public Methods

  • switchIndex()