# How to Add Synonyms to MiniSearch

DevFeed: [How to Add Synonyms to MiniSearch](<https://devfeed.tech/articles/how-to-add-synonyms-to-minisearch-40699.md>)

Original publisher: [Read original article](<https://radek.io/posts/how-to-add-synonyms-to-minisearch/>)

Published: 2024-04-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [Radek Pazdera](<https://devfeed.tech/sources/radek-pazdera.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>), [npm](<https://devfeed.tech/topics/npm.md>), [Website](<https://devfeed.tech/topics/website.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [module](<https://devfeed.tech/tags/module.md>), [npm](<https://devfeed.tech/tags/npm.md>), [query](<https://devfeed.tech/tags/query.md>)

## AI overview

A tutorial on adding synonym support to MiniSearch using the minisearch-synonyms npm package. It explains how to expand queries with synonym variants, manage synonym groups dynamically, and the limitation that complex query combinations are not supported.

## Source excerpt

Adding synonym support to MiniSearch with a few lines of code.