Log in
Model

SearchWeight

Magento\CatalogSearch\Model\Attribute\SearchWeight

What it does

This plugin manages the search_weight cache for product attributes in Magento's search functionality.

When a product attribute's search_weight is modified (which controls search result ranking), it automatically clears the cached search request configuration to ensure the new weight is applied immediately.

Developers typically don't interact with this class directly as it runs automatically during attribute save operations.

Public Methods

  • aroundSave()