codingrow.com
AI Personal Shopper

How to Set Up Search Synonyms in Magento 2 (Native Guide)

A step-by-step guide to configuring Magento 2 search synonyms natively so customers find products no matter which words they type.

AI Personal Shopper โ€” How to Set Up Search Synonyms in Magento 2 (Native Guide)

Shoppers rarely type the exact words in your product titles โ€” they search for "sneakers" when your catalog says "trainers", or "laptop bag" when you sell "notebook case". Setting up Magento 2 search synonyms natively closes this gap and turns near-misses into conversions without touching a single line of code.

  • Configure synonym groups natively from the Magento admin
  • Understand scope (website vs store view) so synonyms apply where needed
  • Test synonym behavior safely before it affects live search
  • Bulk-manage large synonym lists with CSV import/export

Step 1: Locate the Search Synonyms grid

Marketingโ€บSEO & Searchโ€บSearch Synonyms

This grid lists every synonym group already configured, along with the scope each one applies to.

click this button to start a fresh entry

Expect an empty form with a Synonyms text field, a Website dropdown and a Store View dropdown.

Search synonyms only affect Magento's native catalog search (and Elasticsearch/OpenSearch relevance), not autocomplete suggestions configured elsewhere.

Step 2: Create your first synonym group

In the Synonyms field, enter comma-separated terms that should be treated as equivalent.

`sneakers, trainers, kicks`
  • Every word in the list is treated as interchangeable during search.
  • A customer searching "trainers" will now also match products tagged or titled with "sneakers" or "kicks".
choose `All Websites` or a specific one if you run multiple storefronts
leave `All Store Views` unless the synonym only makes sense in one locale

Click Save Synonym Group. Expect a success message and the new row appearing in the grid.

Keep each synonym group focused on one concept (colors, categories, brand nicknames). Mixing unrelated words in one group makes maintenance harder later.

Step 3: Reindex and clear cache

Synonyms are picked up by the search index, so Magento needs to rebuild it.

  • Run bin/magento indexer:reindex catalogsearch_fulltext from the CLI, or
Systemโ€บIndex Management
set to `Update on Save` for instant effect during testing, or trigger a manual reindex

Also run bin/magento cache:flush to be safe.

If you skip the reindex step, new synonyms won't show up in storefront search results even though they're saved in the admin.

Step 4: Test the synonym on the storefront

Open an incognito browser window and search for one of the synonym terms.

  • Search for "trainers" and confirm products tagged "sneakers" appear in the results.
  • Search for the original term ("sneakers") too, to make sure nothing was broken.
Storefrontโ€บSearch bar

Expect both terms to return the same (or overlapping) result set.

If results look identical for both terms but ranking order differs, that's normal โ€” synonyms affect matching, not relevance weighting.

Step 5: Handle multi-store and multi-language scope

If you run separate store views per language, synonyms often need to be language-specific.

  • Create one synonym group per store view for non-English terms, e.g. zapatillas, tenis on the Spanish store view.
  • Leave a global group at All Store Views for universal brand or size synonyms.
pick the specific view instead of `All Store Views`

This prevents an English synonym from accidentally matching in a French store search.

Step 6: Bulk-manage synonyms with CSV import/export

For stores with dozens of synonym groups, editing one by one in the admin is slow.

Marketingโ€บSEO & Searchโ€บSearch Synonyms
download the current synonym list as CSV
upload a corrected or expanded CSV file to add or update groups in bulk

Expect the grid to refresh with all new rows after a successful import.

Build your CSV in a spreadsheet first โ€” one column for synonym terms, one for website, one for store view โ€” then paste it into the import template to avoid formatting errors.

Step 7: Monitor real search terms to find missing synonyms

Synonyms are only useful if they match what customers actually type.

Marketingโ€บSEO & Searchโ€บSearch Terms

Expect a report of every phrase searched, including ones with zero results โ€” a goldmine for spotting missing synonym opportunities.

  • Sort by Number of Results ascending to find queries that returned nothing.
  • Add these as new synonym groups pointing to existing product terminology.
Revisit the Search Terms report monthly. Seasonal vocabulary ("holiday lights" vs "christmas lights") shifts over time.

Checklist

  • โ˜ Synonym groups created for the most common alternate product terms
  • โ˜ Correct website/store view scope assigned to each group
  • โ˜ catalogsearch_fulltext indexer reindexed after every change
  • โ˜ Storefront search tested with both original and synonym terms
  • โ˜ CSV export kept as a backup before bulk imports
  • โ˜ Search Terms report reviewed regularly for new synonym candidates

Common mistakes

Problem: Synonyms saved but storefront search still shows zero results for the alternate term.

Fix: Reindex catalogsearch_fulltext and flush cache โ€” synonym changes don't apply live without it.

Problem: A synonym works on one store view but not another.

Fix: Check the Store View scope on the synonym group; it may be restricted to a single view instead of All Store Views.

Problem: Too many unrelated words grouped together cause irrelevant results.

Fix: Split large synonym groups into smaller, topic-specific ones so matching stays precise.

Problem: Synonyms conflict with product attribute values (e.g. a color synonym matching the wrong variant).

Fix: Review synonym groups against your attribute set and remove overly broad terms.

FAQ

Do Magento 2 search synonyms work with Elasticsearch and OpenSearch?

Yes. Native synonym groups are respected by both the legacy MySQL search and Elasticsearch/OpenSearch engines, as long as the catalogsearch_fulltext index is rebuilt after changes.

Can synonyms replace the need for good product titles and attributes?

No. Synonyms help match search queries to existing catalog data, but they don't fix poorly structured titles or missing attribute values โ€” those should still be optimized separately.

How many synonym groups can I add before performance is affected?

Magento doesn't impose a hard limit, but very large synonym dictionaries can slow down indexing. Keep groups focused and review them periodically to prune unused entries.

Do synonyms affect autocomplete suggestions?

Synonyms primarily influence full search result matching. Autocomplete behavior depends on separate search configuration and may not always reflect synonym groups identically.

A faster alternative

Manually building and maintaining synonym groups works, but it's reactive โ€” you only discover gaps after checking the Search Terms report. An AI-driven layer can shortcut this by understanding intent directly, even before a synonym exists.

The Synonyms tab: a paginated, editable registry with CSV export/import and one-click "Inject into site search".
The Synonyms tab: a paginated, editable registry with CSV export/import and one-click "Inject into site search".

The AI Personal Shopper includes its own synonyms registry with CSV export/import and a one-click "Inject into site search" action, so vocabulary gaps discovered in real conversations can be pushed straight back into native Magento search โ€” closing the loop between what customers actually say and what your catalog returns.

Questions & Answers

No questions yet โ€” be the first to ask.

Ask a question

Public. Shown only after moderation. No spam.