임시 Domain 수정
    • PDF

    임시 Domain 수정

    • PDF

    Article Summary

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

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

    요청

    요청 파라미터

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

    요청 바디

    필드명필수 여부타입제약사항설명
    nameYesstring영문, "_"로 시작, 영문, 숫자, "_", "-" 허용 최소 3자 최대 20자까지 입력임시 도메인 이름
    descriptionNostring0 ~ 100자까지 입력임시 도메인 설명
    typeNostringsmall, medium, large, xlarge, xxlarge, xxxlarge 중 하나를 선택(Default:small)Container 규모 설정
    indexerCountNonumber현재는 1만 설정 가능색인을 담당하는 컨테이너의 개수
    searcherCountNonumberMin:1, Max:4검색을 담당하는 컨테이너의 개수
    schema.documentNoSchema검색 설정

    응답

    응답 Status

    HTTP StatusDesc
    200OK(수정 완료)
    200Bad Request
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    예시

    요청 예시

    PUT https://cloudsearch.apigw.gov-ntruss.com/CloudSearch/real/v1/tempdomain/pet
    
    {
     "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.