hi everyone, so I'm begginer in ELK and I saw in a video this input "PUT".
PUT /produtos
{
"settings": {
"index": {
"number_of_shards": 3,
"number_of_replicas": 0
}
},
"mappings": {
"v1": {
"_all": {
"type": "text",
"analyzer": "portuguese"
},
"properties": {
"nome": {
"fields": {
"original": {
"type": "keyword"
}
},
"type": "text",
"analyzer": "portuguese"
},
"categoria": {
"fields": {
"original": {
"type": "keyword"
}
},
"type": "text",
"analyzer": "portuguese"
},
"subcategoria": {
"fields": {
"original": {
"type": "keyword"
}
},
"type": "text",
"analyzer": "portuguese"
},
"tags": {
"fields": {
"original": {
"type": "keyword"
}
},
"type": "string",
"index": "analyzed",
"analyzer": "portuguese"
},
"fornecedor": {
"fields": {
"original": {
"type": "keyword",
"index": "not_analyzed"
}
},
"type": "text"
},
"preco": {
"type": "float"
}
}
}
}
}
when I execute this in devTools in kibana, I have this message :
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [v1 : {_all={analyzer=portuguese, type=text}, properties={preco={type=float}, subcategoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, categoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, nome={analyzer=portuguese, fields={original={type=keyword}}, type=text}, fornecedor={fields={original={index=not_analyzed, type=keyword}}, type=text}, tags={analyzer=portuguese, index=analyzed, fields={original={type=keyword}}, type=string}}}]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [v1 : {_all={analyzer=portuguese, type=text}, properties={preco={type=float}, subcategoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, categoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, nome={analyzer=portuguese, fields={original={type=keyword}}, type=text}, fornecedor={fields={original={index=not_analyzed, type=keyword}}, type=text}, tags={analyzer=portuguese, index=analyzed, fields={original={type=keyword}}, type=string}}}]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [v1 : {_all={analyzer=portuguese, type=text}, properties={preco={type=float}, subcategoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, categoria={analyzer=portuguese, fields={original={type=keyword}}, type=text}, nome={analyzer=portuguese, fields={original={type=keyword}}, type=text}, fornecedor={fields={original={index=not_analyzed, type=keyword}}, type=text}, tags={analyzer=portuguese, index=analyzed, fields={original={type=keyword}}, type=string}}}]"
}
},
"status": 400
}
I don't know what to do, can anybody give me a tips. Thanks.