🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
Guides / Managing results / Optimize search results / Adding synonyms

Use one-way synonyms when you want a word or phrase to find its synonyms, but not the reverse.

For example, you want “tablet” to find “iPad” so that iPads show up on all “tablet” searches. However, you don’t want the reverse: you don’t want an “iPad” search to find all tablets: searching for “iPad” shouldn’t display tablets from other brands .

One-way synonyms are defined similarly to regular synonyms; the only difference is that the type attribute is oneWaySynonym.

1
2
3
4
5
6
7
8
9
{
   "objectID": "a-unique-identifier",
   "type": "oneWaySynonym",
   "input": "tablet",
   "synonyms": [
      "ipad",
      "galaxy tab"
   ]
}
Did you find this page helpful?