Class: AddSearchSynonym

AddSearchSynonym(term, synonym, optional)

Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items). When the `term` is used in the search query, the `synonym` is also used for the full-text search. Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`). An example of a synonym can be `science fiction` for the term `sci-fi`.

Constructor

new AddSearchSynonym(term, synonym, optional)

Construct the request
Parameters:
Name Type Description
term string A word to which the `synonym` is specified.
synonym string A word that should be considered equal to the `term` by the full-text search engine.
optional Object Optional parameters given as an object with structure name of the parameter: value - Allowed parameters: - *oneWay* - Type: boolean - Description: If set to `true`, only `term` -> `synonym` is considered. If set to `false`, also `synonym` -> `term` works. Default: `false`.
Source:

Methods

bodyParameters() → {Object}

Get body parameters
Source:
Returns:
The values of body parameters (name of parameter: value of the parameter)
Type
Object

queryParameters() → {Object}

Get query parameters
Source:
Returns:
The values of query parameters (name of parameter: value of the parameter)
Type
Object