Model
ItemCollectionProvider
Magento\CatalogSearch\Model\Search\ItemCollectionProvider
What it does
This class provides the appropriate search result collection based on the configured search engine (like Elasticsearch, MySQL, or OpenSearch).
Developers use this to retrieve product search results in a way that's agnostic to the underlying search technology, allowing Magento to switch between different search engines seamlessly.
Public Methods
- getCollection()