Log in
Model

ProductCollectionPrepareStrategyProvider

Magento\CatalogSearch\Model\Advanced\ProductCollectionPrepareStrategyProvider

What it does

This class provides the appropriate strategy for preparing product collections in advanced catalog search based on the currently configured search engine (like Elasticsearch, MySQL, etc.).

Developers use this when they need to customize how product collections are prepared for different search engines, falling back to a default strategy if no engine-specific implementation exists.

Public Methods

  • getStrategy()