Model
SynonymGroup
Magento\Search\Model\SynonymGroup
What it does
This model manages synonym groups for search functionality in Magento 2, allowing merchants to define sets of interchangeable search terms (e.g., 'pants' and 'trousers').
Developers use this class to create, retrieve, or modify synonym groups that are scoped to specific websites or store views, improving search result accuracy by recognizing related terms.
Public Methods
- getGroupId()
- setGroupId()
- getWebsiteId()
- setWebsiteId()
- getStoreId()
- setStoreId()
- getSynonymGroup()
- setSynonymGroup()
- setScope()