Set a user thesaurus.
The word that the user wants can be configured as a synonym and searched.
You can currently set only one thesaurus, and then manage it by version.
Enter synonyms by using commas (,) and classify the words by using line breaks.
POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}/synonym
Request
Request parameters
Parameter name |
Requirement status |
Type |
Restrictions |
Explanation |
name |
Yes |
string |
|
Domain name created |
Request body
Parameter name |
Requirement status |
Type |
Restrictions |
Explanation |
name |
Yes |
string |
Start with an English letter or "_". English letters, numbers, and "_" are allowed. 3 to 20 characters can be entered. |
Thesaurus name to create |
description |
Yes |
string |
Enter 0 to 100 characters |
Description about the thesaurus to create |
wordList |
Yes |
string |
|
List of words to set as synonyms |
version |
Yes |
string |
|
Version of the thesaurus to create |
Response statuses
HTTP status |
Desc |
200 |
OK (Successfully created) |
400 |
Bad Request |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
500 |
Internal Server Error |
Example
Request example
POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/wiki/synonym
{
"name": "syno",
"description": "Wiki thesaurus",
"wordList": "Hyundai,Hyondai\nAudi,Aodi",
"version": "0.1"
}
Response example
{"result":"ok"}