Model
Weight
Magento\CatalogSearch\Model\Source\Weight
What it does
This class provides weight options (1-10) for search attribute configuration in Magento's catalog search.
Developers use this when configuring how heavily different product attributes should influence search results, allowing admins to prioritize certain attributes like name or SKU over others in search rankings.
Public Methods
- getOptions()
- getValues()
- toOptionArray()