Domain作成
    • PDF

    Domain作成

    • PDF

    Article Summary

    Domainを作成します。
    自動完成設定及び修正はDomain作成以降、可能です。
    インデックス(index)は、Domain作成してから追加は可能であるが、作成した後に削除は不可能です。

    POST https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain
    

    リクエスト

    リクエストボディ

    フィールド名必須タイプ制約事項説明
    nameYesstring英文字、 "_"ではじまる、英文字、数字、 "_"、"-" 許容、最小3文字、最大20文字まで入力作成するDomain名
    typeYesstringsmall, medium, large, xlarge, xxlarge, xxxlargeの中、一つを選択(Default:small)コンテナ規模設定
  • small: Standard - 4: メモリ4GB / ストレージ30GB / お勧め最大Document数100万個 / お勧めインデックス2個
  • medium: Standard - 8: メモリ8GB / ストレージ50GB / お勧め最大Document数200万個 / お勧めインデックス3個
  • large: Standard - 16: メモリ16GB / ストレージ100GB / お勧め最大Document数400万個 / お勧めインデックス4個
  • xlarge: Standard - 32: メモリ32GB / ストレージ200GB / お勧め最大Document数800万個 / お勧めインデックス5個
  • xxlarge: High Memory - 64: メモリ64GB / ストレージ400GB / お勧め最大Document数1600万個 / お勧めインデックス6個
  • xxxlarge: High Memory - 128: メモリ128GB / ストレージ800GB / お勧め最大Document数3200万個 / お勧めインデックス7個
  • indexerCountYesnumber現在は1のみ設定可能インデックスを担当するコンテナの個数
    searcherCountYesnumberMin:1, Max:4検索を担当するコンテナの個数
    descriptionYesstring0 ~ 100文字まで入力作成するDomainに対する説明
    schema.documentYesSchema有効なSchema(Schema検証を通じて確認可能)作成するDomainの検索設定

    レスポンス

    レスポンスStatus

    HTTP StatusDesc
    200OK(作成完了)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    例示

    リクエスト例示

    POST /CloudSearch/real/v1/domain HTTP/1.1
    Host: cloudsearch.apigw.ntruss.com
    accept:application/json
    
    x-ncp-apigw-signature-v2: vuJdaypGE9ivNY3v/dRU/D96/HGmqgX1081UAjlOqbw=
    x-ncp-apigw-timestamp: 1545800662952
    x-ncp-iam-access-key: teGTwtcSEGA7fu28BGGi
    
    {
      "name": "car_dev",
      "description": "",
      "type": "small",
      "indexerCount": 1,
      "searcherCount": 1,
      "schema": {
        "document": {
          "primarySectionName": "docid",
          "sections": [
            {
              "name": "docid"
            },
            {
              "name": "brand"
            },
            {
              "name": "name"
            },
            {
              "docProperties": [
                {
                  "type": "string",
                  "name": "dp_color"
                }
              ],
              "name": "color"
            },
            {
              "docProperties": [
                {
                  "type": "uint32",
                  "name": "dp_price"
                }
              ],
              "name": "price"
            },
            {
              "docProperties": [
                {
                  "type": "string",
                  "name": "dp_type"
                }
              ],
              "name": "type"
            },
            {
              "docProperties": [
                {
                  "type": "uint32",
                  "name": "dp_sell_cnt"
                }
              ],
              "name": "sell_cnt"
            },
            {
              "name": "image_url"
            }
          ],
          "indexes": [
            {
              "name": "brand_name",
              "documentTermWeight": "sum_wgt",
              "buildInfos": [
                {
                  "indexProcessors": [
                    {
                      "type": "hanaterm",
                      "method": "sgmt",
                      "option": "+korea +josacat +eomicat"
                    }
                  ],
                  "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                  "sections": [
                    "brand",
                    "name"
                  ],
                  "name": "index_build"
                }
              ]
            }
          ]
        }
      }
    }
    

    レスポンス例示

    {"result":"ok"}
    

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

    What's Next
    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.