I am trying to add “explicit” synonyms in my source synonym collection in my “synonym” array.
However, whenever I add a open compound words (i.e. words made up of 2 or more words with a space between them i.e. “radio station”), the document is considered by Atlas to be invalid. However, it is essential that my synonym lists contain open compound words.
A sample document provided by MongoDB only shows @ https://www.mongodb.com/docs/atlas/atlas-search/synonyms/#std-label-synonyms-coll-format :
{
"mappingType": "explicit",
"input": ["beer"],
"synonyms": ["beer", "brew", "pint"]
}
but what I need also covered are cases like this one:
{
"mappingType": "explicit",
"input": ["trash bin"],
"synonyms": ["garbage can"]
}
as well as:
{
"mappingType": "explicit",
"input": ["computer"],
"synonyms": ["computing device", "information processing system"]
}
Any help would be greatly appreciated! Thanks!