MENU
      Schema照会

        Schema照会


        記事の要約

        該当Domainに設定された検索設定(Schema)を照会します。該当リクエストを実行する前にDomain作成が必要です。

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

        リクエスト

        リクエストパラメータ

        パラメータ名必須タイプ制約事項説明
        nameYesstring作成されているDomain名

        レスポンス

        フィールド名タイプ説明備考
        documentSchema検索設定

        レスポンスStatus

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

        例示

        リクエスト例示

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

        レスポンス例示

        {
          "document": {
            "primarySectionName": "docid",
            "sections": [
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_docid"
                  }
                ],
                "name": "docid"
              },
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_brand"
                  }
                ],
                "name": "brand"
              },
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_name"
                  }
                ],
                "name": "name"
              },
              {
                "docProperties": [
                  {
                    "type": "string",
                    "name": "dp_price"
                  }
                ],
                "name": "price"
              },
              {
                "docProperties": [
                  {
                    "type": "float",
                    "name": "dp_name2"
                  }
                ],
                "name": "name2"
              }
            ],
            "indexes": [
              {
                "documentTermWeight": "sum_wgt",
                "buildInfos": [
                  {
                    "sections": [
                      "brand"
                    ],
                    "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                    "indexProcessors": [
                      {
                        "type": "hanaterm",
                        "method": "sgmt",
                        "option": "+korea +josacat +eomicat"
                      }
                    ],
                    "name": "index_build_0"
                  },
                  {
                    "sections": [
                      "name"
                    ],
                    "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                    "indexProcessors": [
                      {
                        "type": "hanaterm",
                        "method": "sgmt",
                        "option": "+korea +josacat +eomicat"
                      }
                    ],
                    "name": "index_build_1"
                  }
                ],
                "name": "brand_name"
              },
              {
                "documentTermWeight": "sum_wgt",
                "buildInfos": [
                  {
                    "sections": [
                      "price"
                    ],
                    "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                    "indexProcessors": [
                      {
                        "type": "hanaterm",
                        "method": "sgmt",
                        "option": "+korea +josacat +eomicat"
                      }
                    ],
                    "name": "index_build_0"
                  }
                ],
                "name": "price"
              }
            ]
          }
        }
        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.