Collection
Search\Collection
Magento\CatalogSearch\Model\ResourceModel\Search\Collection
What it does
This collection class handles search functionality for catalog products in Magento 2.
Developers use it to filter and retrieve product collections based on search queries, supporting both frontend (current store) and backend (all stores) search operations.
It builds complex SQL queries that search across product attributes including text fields and dropdown options.
Public Methods
- _resetState()
- addSearchFilter()
- addBackendSearchFilter()