Guides
/
Managing results
/
Optimize search results
/
Adding synonyms
Jul. 20, 2021
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 are convenient.
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"
]
}
Did you find this page helpful?