Log in
Model

SearchEngine

Magento\Search\Model\SearchEngine

What it does

This class serves as the main entry point for executing search queries in Magento 2.

Developers use this class when they need to perform search operations, as it delegates the actual search execution to the configured search adapter (like Elasticsearch or MySQL) through the query method.

It acts as a facade that provides a consistent interface for searching regardless of the underlying search engine implementation.

Public Methods

  • search()