Log in
Repository

SynonymGroupRepositoryInterface

Magento\Search\Api\SynonymGroupRepositoryInterface

What it does

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

Developers use this repository to save, retrieve, and delete synonym groups that help improve search results by matching related terms (e.g., 'shirt' matches 'blouse', 'top').

It's particularly useful when implementing custom search synonym management or extending the native search synonym feature.

Public Methods

  • save()
  • delete()
  • get()