【发布时间】:2018-05-17 21:18:42
【问题描述】:
我是 elasticsearch 和 kibana 的新手
我正在用 elasticsearch 做一些练习(创建索引、类型和文档..)
我创建了一个类型为“building”的索引“business”
put /business/building/217
{
"adresse":"11 Pen Ave",
"floors":5,
"offices":7,
"loc":{
"lat":40.693479,
"lon":-73.983854
}
}
这很有趣,但是当我尝试创建另一种这样的类型时
put /business/employee/330
{
"name":"Richard Bell",
"title":"Senior Accountant",
"salar_usd":115000.00,
"hiredate":"Jan 19, 2013"
}
然后我得到了这个错误
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [business] as the final mapping would have more than 1 type: [employee, building]"
},
"status": 400
}
【问题讨论】:
标签: elasticsearch kibana