Class OnewaySynonymsAction (1.15.0)

OnewaySynonymsAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. query_terms will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".

Attributes

NameDescription
query_terms MutableSequence[str]
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
synonyms MutableSequence[str]
Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
oneway_terms MutableSequence[str]
Will be [deprecated = true] post migration;