Log in
Interface

SynonymGroupInterface

Magento\Search\Api\Data\SynonymGroupInterface

What it does

This interface defines the contract for managing search synonym groups in Magento 2.

Developers use it to create, retrieve, and modify groups of synonymous terms that improve search functionality by treating related words as equivalent.

It enables merchants to configure synonyms at the store or website level, helping customers find products using different but related search terms.

Public Methods

  • getGroupId()
  • setGroupId()
  • getSynonymGroup()
  • setSynonymGroup()
  • getStoreId()
  • setStoreId()
  • getWebsiteId()
  • setWebsiteId()