遇到(mapper_parsing_exception)“无法解析映射[_doc]:根映射定义具有不受支持的参数

时间:2019-12-23 09:56:39

标签: sql-server elasticsearch kibana

我正在将SQL Server数据表导出到Elasticsearch,但是当我打算在Kibana中创建索引时,由于我是Elasticsearch的新手,所以会出现此错误。请帮我。以下代码包含我正在创建的索引。

PUT /salestansactions2009
{
    "settings": {
        "number_of_shards": 1
    },
    "mappings": {
        "type": {
            "properties": {
                "location": {
                    "type": "geo_point"
                },
                "Transaction_date": {
                    "type": "date",
                    "format": "HH:mm yyyy-MM-dd"
                },
                "Account_Created": {
                    "type": "date",
                    "format": "HH:mm yyyy-MM-dd"
                },
                "Last_Login": {
                    "type": "date",
                    "format": "HH:mm yyyy-MM-dd"
                }
            }
        }
    }
} 

这是我得到的错误:

{
  "error": {
    "root_cause": [
      {
        "type": "mapper_parsing_exception",
        "reason": "Root mapping definition has unsupported parameters:  [type : {properties={Last_Login={format=HH:mm yyyy-MM-dd, type=date}, location={type=geo_point}, Transaction_date={format=HH:mm yyyy-MM-dd, type=date}, Account_Created={format=HH:mm yyyy-MM-dd, type=date}}}]"
      }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:  [type : {properties={Last_Login={format=HH:mm yyyy-MM-dd, type=date}, location={type=geo_point}, Transaction_date={format=HH:mm yyyy-MM-dd, type=date}, Account_Created={format=HH:mm yyyy-MM-dd, type=date}}}]",
    "caused_by": {
      "type": "mapper_parsing_exception",
      "reason": "Root mapping definition has unsupported parameters:  [type : {properties={Last_Login={format=HH:mm yyyy-MM-dd, type=date}, location={type=geo_point}, Transaction_date={format=HH:mm yyyy-MM-dd, type=date}, Account_Created={format=HH:mm yyyy-MM-dd, type=date}}}]"
    }
  },
  "status": 400
}

0 个答案:

没有答案