Edit temporary domain
    • PDF

    Edit temporary domain

    • PDF

    Article summary

    We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

    Edits a temporary domain created in Cloud Search.

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

    Request

    Request Parameters

    ParameterRequiredTypeLimitationsDescription
    nameYstringTemporary domain name

    Request Body

    FieldRequiredTypeLimitationsDescription
    nameRequiredstringOnly English alphabet, numbers, "_" and "-" are allowed. The name must start with an alphabetical character or "_", and must be between 3 and 20 characters in length.Temporary domain name
    descriptionOptionalstring0-100 charactersTemporary domain description
    typeOptionalstringSelect one of the following: small, medium, large, xlarge, xxlarge, and xxxlarge (default: small).Scale of containers
    indexerCountOptionalnumberThe only available value is 1 for now.Number of containers handling indexes
    searcherCountOptionalnumberMin: 1, Max: 4Number of containers handling searches
    schema.documentOptionalSchemaSearch settings

    Response

    Response status

    HTTP statusDescription
    200OK (Successfully edited)
    200Bad Request
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    Examples

    Request Example

    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"
         }]
        }]
       }]
      }
     }
    }
    

    Request Example

    {"result":"ok"}
    

    Was this article helpful?

    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.