1
に2種類を作成することはできません私はelasticsearchとkibanaが同じインデックスelasticsearch&Kibana
に私はelasticsearchでいくつかのエキソサイズをやっている新しいよ(インデックス、種類やドキュメントを作成...)
I
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"
}
のような別の型を作成しようとしたとき、
その後、私はあなたがおそらくElasticsearchバージョン6を実行していると、そのバージョンのようESは、あなたが任意のインデックスにmore than one typeを作成することはできません。このエラーに
{
"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
}
これで運がいいですか? – Val