Model
EngineProvider
Magento\CatalogSearch\Model\ResourceModel\EngineProvider
What it does
This class acts as a factory provider for the catalog search engine in Magento 2.
Developers use it to retrieve the currently configured search engine instance (like MySQL or Elasticsearch) which implements the EngineInterface.
It validates that the engine exists, implements the correct interface, and is available before returning it as a singleton.
Public Methods
- get()