我正在将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
}