Magento 2 search synonyms. How to test them in two store views

1 min read

A laptop showing two shop views with sofas, beside a magnifying glass and cards

Choose a product with different names in two store views. In each view, type the full search term, a prefix and a control term outside the list. Record suggestions and results after submitting the query separately.

Identify the list used by both views

In Search Optimizer 1.0.40, Synonyms is available under Default Config. Set Enable Synonyms and enter one group per line, separating terms with commas. The Polish and English views share the list. Search Optimizer · Module documentation

Compare full terms and prefixes

The local probe ran the original query builder with kanapa, sofa and couch, settee. In both views, kanapa added a sofa clause. The prefix kana produced no synonym expansion. The table shows generated clauses. Product results depend on the indexed data.

Extra synonym clauses in the probe
ViewQueryFull resultsSuggestions
plkanapasofasofa
enkanapasofasofa
encouchsetteesettee
plkana——
plbiurko——

Check the behaviour on a test catalogue

Record the minimum suggestion length and repeat the test against the same index version before and after enabling the list. Compare the first visible SKUs for each term. When both queries contain the clause but return different products, check the product name and visibility in each view.

If a product ranks below accessories, see the search result ranking guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)