1
두 종류를 만들 수 없습니다 유형 '건물'내가 elasticsearch와 키바</p> <p>내가 elasticsearch (인덱스, 유형 및 문서를 만들 ..)</p> <p>I와 일부 exercices을하고 있어요을 새로운 해요 동일한 인덱스 elasticsearch & 키바
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"
}
같은 다른 유형을 만들려고 할 때 6,
그때 당신은 아마 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