Interface
SearchCollectionInterface
Magento\Search\Model\SearchCollectionInterface
What it does
This interface defines a contract for collections that support search functionality in Magento 2.
Developers implement this interface when creating custom collection classes that need to filter results based on search terms, ensuring collections can be traversed, counted, and filtered by search queries in a standardized way.
Public Methods
- addSearchFilter()