Multiple One Way Phrases for One Synonym

Hi Team,

Is there a correct notation to enter multiple phrases for the same one way synonym? I tried a few things but they did not seem to be accepted.

Use case is that I want a client’s “International Services” entity to appear when there is a search query with a country name and I want to try to avoid having to set a one way synonym for every country.

Current synonym config:
“oneWay”: [
{
“phrase”: “Afghanistan”,
“synonyms”: [
“international”
]
},
{
“phrase”: “Albania”,
“synonyms”: [
“international”
]
}
],

Thanks!

Juan

Hi Juan,

You’ve got this set up correctly. You would need to set up a separate one way synonym for each country (or phrase) to map to “international”.

Another option you can consider is adding keywords to the “International Services” entity for each relevant country and making the keywords field searchable.

Great, thank you Kristy!