ClientResolver
Magento\AdvancedSearch\Model\Client\ClientResolver
What it does
This class resolves and creates search engine client instances in Magento 2's advanced search functionality.
Developers use it to obtain the currently configured search engine (like Elasticsearch) and to instantiate the appropriate client with the necessary configuration options.
It acts as a factory pattern implementation that manages different search engine clients through a pool of registered factories.
Public Methods
- getCurrentEngine()
- create()