Concepts / Managing results / One way synonyms
May. 10, 2019

One Way Synonyms

One-way synonyms

Sometimes, searches for one term should also yield results for another, but not in reverse. This is where one-way synonyms come in handy.

In the example below, searches for “tablet” should logically return “iPad” since iPads are just one type of tablet.

1
"tablet"  "iPad"

However, “iPad” is more specific than “tablet,” and probably shouldn’t return generic matches for “tablet”:

1
"iPad"  "tablet"

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

1
2
3
4
5
6
7
8
9
{
   "objectID": "a-unique-identifier",
   "type": "oneWaySynonym",
   "input": "tablet",
   "synonyms": [
      "ipad",
      "galaxy note"
   ]
}

Did you find this page helpful?