Schema履歴照会

Prev Next

該当Domainに設定された検索設定(Schema)の履歴を照会します。該当リクエストを実行する前にDomain作成が必要です。
Schema変更履歴がある場合のみ、データが出力されます。

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

リクエスト

リクエストパラメータ

パラメータ名 必須 タイプ 制約事項 説明
name Yes string 作成されているDomain名 Schema履歴を照会しようとするDomain名
limit Yes number Min:1 MAX:30 Pagination Limit
offset Yes number Pagination Offset
order Yes string DESC, ASC 結果のソート基準

レスポンス

レスポンスボディ

フィールド名 必須 タイプ 説明 備考
toBeSchema.document No Schema 変更されたSchema
asIsSchema.document No Schema 変更前のSchema
createdDate No string Schema変更時間

レスポンスStatus

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

例示

リクエスト例示

GET /CloudSearch/real/v1/domain/car_beta/schema/history?limit=10&offset=0&order=DESC HTTP/1.1
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

レスポンス例示

[
  {
    "toBeSchema": {
      "document": {
        "autocomplete": {
          "indexName": "brand_name",
          "sectionName": "name"
        },
        "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": [
          {
            "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"
              }
            ],
            "name": "brand_name"
          },
          {
            "name": "color",
            "documentTermWeight": "sum_wgt",
            "buildInfos": [
              {
                "name": "index_build_color",
                "sections": [
                  "color"
                ],
                "sectionTermWeight": "1.0 * stw_2p(tf, 0.5, 0.25, 0., length / 128.0)",
                "indexProcessors": [
                  {
                    "type": "hanaterm",
                    "method": "sgmt",
                    "option": "+korea +josacat +eomicat"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    "asIsSchema": {
      "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"
              }
            ]
          }
        ]
      }
    },
    "createdDate": "2019-03-04T06:39:56.072Z"
  }
]