반응형
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [docs : {properties={title={type=text}, content={type=keyword}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: Root mapping definition has unsupported parameters: [docs : {properties={title={type=text}, content={type=keyword}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [docs : {properties={title={type=text}, content={type=keyword}}}]"}},"status":400}
에러 발생
7.X 위로 버전업되면서 형식이 바뀜
curl -X PUT "localhost:9200/docs" -H 'Content-Type:application/json' -d'
{
"mappings": {
"docs": {
"properties": {
"title": {"type": "text"},
"content": {"type": "keyword"}
}
}
}
}
'
docs를 빼줘야함
curl -X PUT "localhost:9200/docs" -H 'Content-Type:application/json' -d'
{
"mappings": {
"properties": {
"title": {"type": "text"},
"content": {"type": "keyword"}
}
}
}
'
Reference
반응형
'ElasticSearch' 카테고리의 다른 글
[ElasticStack] Logstash 설치 (0) | 2022.11.10 |
---|---|
[ElasticStack] Filebeat 설치 (2) | 2022.11.08 |
ElasticSearch Analyzers 란? (0) | 2022.11.02 |
ElasticSearch data 노드 클러스터링 (0) | 2022.09.28 |
[ElasticSearch]클러스터에 노드 2개 붙이기... (0) | 2022.09.27 |
댓글