CollectionFilter
Magento\Catalog\Model\Layer\Search\CollectionFilter
What it does
This class filters and configures product collections specifically for search results pages in Magento 2.
Developers use this class when they need to ensure search result collections include necessary product attributes (prices, tax, URLs, visibility) and are properly filtered for the current store.
It's automatically applied when displaying search results through Magento's layered navigation system.
Public Methods
- filter()