Get schema history
    • PDF

    Get schema history

    • PDF

    Article summary

    We are preparing a localization service for the content. We will do our best to provide the localization service as soon as possible.

    Gets schema change history of a domain. You need to Create Domain first to perform this operation.
    Response data is displayed only when schema change history exists.

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

    Request

    Request Parameters

    ParameterRequiredTypeLimitationsDescription
    nameYstringDomain nameName of the domain to get schema change history for
    limitYnumberMin: 1, MAX: 30Pagination limit
    offsetYnumberPagination offset
    orderYstringDESC, ASCSorting order of results

    Response

    Response Body

    FieldRequiredTypeDescriptionNote
    toBeSchema.documentNSchemaCurrent (changed) schema
    asIsSchema.documentNSchemaPrevious schema
    createdDateNstringSchema change time

    Response status

    HTTP statusDescription
    200OK (Successfully completed)
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    500Internal Server Error

    Examples

    Request Example

    GET /CloudSearch/real/v1/domain/car_beta/schema/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
    

    Request Example

    [
      {
        "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"
      }
    ]
    

    Was this article helpful?

    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.