Log in
Model

DataProvider

Magento\CatalogSearch\Model\Autocomplete\DataProvider

What it does

This class provides autocomplete/search suggestion data for Magento 2's catalog search functionality.

Developers use it to retrieve suggested search queries based on what customers are typing in the search box.

It fetches popular search terms from the database, respecting a configurable limit, and prioritizes exact matches at the top of the results.

Public Methods

  • getItems()