臨時Domain修正
    • PDF

    臨時Domain修正

    • PDF

    記事の要約

    Cloud Searchで作成した臨時Domainを修正します。

    PUT https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/tempdomain/{name}
    

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    nameYesstring作成されている臨時Domain名

    リクエストボディ

    フィールド名必須タイプ制約事項説明
    nameRequiredString英文字、 "_"ではじまる、英文字、数字、 "_"、"-" 許容、最小3文字、最大20文字まで入力臨時Domain名
    descriptionOptionalString0 ~ 100文字まで入力臨時Domain説明
    typeOptionalStringsmall, medium, large, xlarge, xxlarge, xxxlargeの中、一つを選択(Default:small)Container規模設定
    indexerCountOptionalNumber現在は1のみ設定可能インデックスを担当するコンテナ個数
    searcherCountOptionalNumberMin:1, Max:4検索を担当するコンテナ個数
    schema.documentOptionalSchema検索設定

    レスポンス

    レスポンスStatus

    HTTP StatusDesc
    200OK(修正完了)
    200Bad Request
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal 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"}
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.