Log in
Model

ItemCollectionProvider

Magento\Elasticsearch\Model\Layer\Search\ItemCollectionProvider

What it does

This class provides the product collection for Elasticsearch-based search results in Magento 2's layered navigation.

It determines which search engine is active and returns the appropriate collection factory for that engine.

Developers use this when customizing search results display or implementing custom search functionality that needs to work with Elasticsearch.

Public Methods

  • getCollection()