自動完成設定履歴照会

Prev Next

Domainに設定された自動完成の変更履歴を照会します。
自動完成設定履歴がある場合のみ、データが出力されます。

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

リクエスト

リクエストパラメータ

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

レスポンス

レスポンスボディ

フィールド名 必須 タイプ 説明 備考
[].asIsAutocomplete No AutocompleteSearchSchema 変更前の自動完成設定
[].toBeAutocomplete No AutocompleteSearchSchema 変更された自動完成設定
[].documentCount No number 自動完成インデックスが完了されたDocument数
[].createdDate No string 自動完成設定変更時間

レスポンス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/eeee/autocomplete/history?limit=10&offset=0&order=DESC 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

レスポンス例示

[
  {
    "asIsAutocomplete": {
      "sectionName": "",
      "indexName": "brand_name"
    },
    "toBeAutocomplete": {
      "sectionName": "name",
      "indexName": "brand_name"
    },
    "documentCount": 3,
    "createdDate": "2019-03-05T08:39:20.738Z"
  },
  {
    "asIsAutocomplete": {
      "sectionName": "",
      "indexName": "brand_name"
    },
    "toBeAutocomplete": {
      "sectionName": "",
      "indexName": "brand_name"
    },
    "documentCount": 3,
    "createdDate": "2019-03-05T08:38:38.379Z"
  },
  {
    "asIsAutocomplete": null,
    "toBeAutocomplete": {
      "sectionName": "",
      "indexName": "brand_name"
    },
    "documentCount": 3,
    "createdDate": "2019-03-05T08:37:08.046Z"
  }
]