Domain照会
    • PDF

    Domain照会

    • PDF

    記事の要約

    登録するDomain情報を照会します。

    GET https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/{name}
    

    リクエスト

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    nameYesstring作成されているDomain名
    haveContainerYesbooleanコンテナ情報照会区分
    haveUsgaeYesbooleanDomain使用量情報照会区分

    レスポンス

    フィールド名必須タイプ説明備考
    autoCompleteChangeableYesstring自動完成インデックス変更可能区分ENABLE, DISABLE
    autocompleteSchemaYesAutoCompleteSchema自動完成設定
    containerChangeableYesstring検索用コンテナ変更可能区分ENABLE, DISABLE
    containersYesList<Container>コンテナ情報
    createdDateYesstringDomain作成時間
    descriptionYesstringDomain説明
    domainStatusYesstringサービスステータス
    domainUsageYesDomanUsageDomain使用量
    indexerCountYesnumberインデックス用コンテナ数
    nameYesstringDomain名
    schema.documentYesSchema検索設定
    schemaChangeableYesstringスキーマ修正可能区分ENABLE, DISABLE
    searcherCountYesnumber検索用コンテナ数
    typeYesstringコンテナタイプsmall, medium, large, xlarge, xxlarge, xxxlarge
    updatedDateYesstring最終アップデート時間

    レスポンスStatus

    HTTP StatusDesc
    200OK(照会完了)
    400Bad Request
    401Unauthorized
    401there is no such service
    403Forbidden
    404Not Found
    500Internal Server Error

    例示

    リクエスト例示

    GET https://cloudsearch.apigw.ntruss.com/CloudSearch/real/v1/domain/car
    
    GET /CloudSearch/real/v1/domain/car HTTP/1.1:
    Host:cloudsearch.apigw.ntruss.com
    accept:application/json
    x-ncp-iam-access-key:teGTwtcSEGA7fu28BGGi
    x-ncp-apigw-signature-v2:Woa5hYjEe1D1LANFlWFe80g9zolMFDhQyoA5bmc8SJ0=
    x-ncp-apigw-timestamp:1545635161290
    

    レスポンス例示

    {
      "name": "car_beta",
      "description": "",
      "domainStatus": "RUNNING",
      "containerChangeable": "ENABLE",
      "schemaChangeable": "ENABLE",
      "autoCompleteChangeable": "ENABLE",
      "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"
                }
              ]
            }
          ]
        }
      },
      "autocompleteSchema": null,
      "createdDate": "2019-03-01T15:11:27.955Z",
      "updatedDate": "2019-03-01T15:11:33.000Z",
      "containers": [
        {
          "type": "indexer",
          "containerStatus": "running",
          "memoryUsageByte": 351518720
        },
        {
          "type": "searcher",
          "containerStatus": "running",
          "memoryUsageByte": 287113216
        }
      ],
      "domainUsage": {
        "nextIndexingUpdateTime": "2019-03-02 00:50:45",
        "nextCompactionTime": "2019-03-02 01:12:45",
        "waitingDocumentCount": 0,
        "validDocumentCount": 0,
        "totalDocumentCount": 0,
        "totalDocumentSize": 0
      }
    }
    

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

    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.