MENU
      임시 Domain 수정

        임시 Domain 수정


        기사 요약

        Cloud Search에서 생성한 임시 도메인을 수정합니다.

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

        요청

        요청 파라미터

        파라미터명필수 여부타입제약 사항설명
        nameYesstring생성되어져 있는 임시 Domain 이름

        요청 바디

        필드명필수 여부타입제약 사항설명
        nameRequiredString영문, "_"로 시작, 영문, 숫자, "_", "-" 허용 최소 3자 최대 20자까지 입력임시 도메인 이름
        descriptionOptionalString0 ~ 100자까지 입력임시 도메인 설명
        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
        Content-Type: 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"
             }]
            }]
           }]
          }
         }
        }
        HTTP

        응답 예시

        {"result":"ok"}
        JSON

        이 문서가 도움이 되었습니까?

        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.