Cloud Searchで作成した臨時Domainを修正します。
PUT https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/tempdomain/{name}
リクエスト
リクエストパラメータ
| パラメータ名 |
必須 |
タイプ |
制約事項 |
説明 |
| name |
Yes |
string |
|
作成されている臨時Domain名 |
リクエストボディ
| フィールド名 |
必須 |
タイプ |
制約事項 |
説明 |
| name |
Required |
String |
英文字、 "_"ではじまる、英文字、数字、 "_"、"-" 許容、最小3文字、最大20文字まで入力 |
臨時Domain名 |
| description |
Optional |
String |
0 ~ 100文字まで入力 |
臨時Domain説明 |
| type |
Optional |
String |
small, medium, large, xlarge, xxlarge, xxxlargeの中、一つを選択(Default:small) |
Container規模設定 |
| indexerCount |
Optional |
Number |
現在は1のみ設定可能 |
インデックスを担当するコンテナ個数 |
| searcherCount |
Optional |
Number |
Min:1, Max:4 |
検索を担当するコンテナ個数 |
| schema.document |
Optional |
Schema |
検索設定 |
|
レスポンス
レスポンスStatus
| HTTP Status |
Desc |
| 200 |
OK(修正完了) |
| 200 |
Bad Request |
| 400 |
Bad Request |
| 401 |
Unauthorized |
| 403 |
Forbidden |
| 404 |
Not Found |
| 500 |
Internal Server Error |
例示
リクエスト例示
PUT https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/tempdomain/pet
PUT /CloudSearch/real/v1/tempdomain/pet HTTP/1.1
Host:cloudsearch.apigw.ntruss.com
accept:application/json
x-ncp-apigw-signature-v2: xVOvK4FCVVnosrQtbbHUpwCJ1xZTOrD/vd8UeTZKaHk=
x-ncp-apigw-timestamp: 1545874294204
x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
{
"name": "pet",
"description": "search engine for pet",
"type": "large",
"indexerCount": 1,
"searcherCount": 1,
"schema": {
"document": {
"primarySectionName": "petid",
"sections": [{
"name": "petid",
"docProperties": [{
"type": "string",
"name": "dp_petid"
}]
},
{
"name": "type",
"docProperties": [{
"type": "string",
"name": "dp_type"
}]
},
{
"name": "name",
"docProperties": [{
"type": "string",
"name": "dp_name"
}]
},
{
"name": "age",
"docProperties": [{
"type": "int8",
"name": "dp_age"
}]
},
{
"name": "birth",
"docProperties": [{
"type": "string",
"name": "dp_birth"
}]
}
],
"indexes": [{
"name": "petid_name",
"documentTermWeight": "sum_wgt",
"buildInfos": [{
"name": "index_build_0",
"sections": [
"petid"
],
"sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
"indexProcessors": [{
"type": "hanaterm",
"method": "sgmt",
"option": "+korea +josacat +eomicat"
}]
}]
}]
}
}
}
レスポンス例示
{"result":"ok"}