Log in
Model

ProductCollectionPrepareStrategy

Magento\Elasticsearch\Model\Advanced\ProductCollectionPrepareStrategy

What it does

This class prepares product collections for advanced search results when using Elasticsearch.

It ensures the collection includes necessary product attributes, pricing information, tax data, and filters products to only show those visible in search results.

Developers use this when implementing or customizing advanced catalog search functionality with Elasticsearch.

Public Methods

  • prepare()