Model
SynonymReader
Magento\Search\Model\SynonymReader
What it does
This class retrieves search synonyms for a given search phrase in the context of the current store view.
Developers use it to load synonym groups that match a user's search query, enabling the search functionality to include alternative terms.
For example, if a customer searches for 'laptop', it can load synonyms like 'notebook' or 'computer' to broaden search results.
Public Methods
- loadByPhrase()