Guides
/
Managing results
/
Optimize search results
/
Synonyms
Oct. 14, 2020
One Way Synonyms
On this page
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.
Copy
1
"tablet" ⇒ "iPad"
However, “iPad” is more specific than “tablet,” and probably shouldn’t return generic matches for “tablet”:
Copy
1
"iPad" ⇏ "tablet"
One-way synonyms are stored very similarly to regular synonyms; the only difference is that the type
attribute is now oneWaySynonym
.
Copy
1
2
3
4
5
6
7
8
9
{
"objectID": "a-unique-identifier",
"type": "oneWaySynonym",
"input": "tablet",
"synonyms": [
"ipad",
"galaxy note"
]
}