Ich habe Probleme mit dem Hochladen von Index in Elasticsearch.Mapping-Index Elasticsearch Timestamp benutzerdefinierte
curl -H "Content-Type: application/json" -XPUT http://localhost:9200/technogym_error_timeline -d "{\"mappings\":{\"timestamp\":{\"type\":\"date\",\"format\":\"yyyy-MM-dd\"}}}"
ich diesen Fehler:
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [format : yyyy-MM-dd] [type : date]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [timestamp]: Root mapping definition has unsupported parameters: [format : yyyy-MM-dd] [type : date]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [format : yyyy-MM-dd] [type : date]"}},"status":400}
Warum ist mein curl Befehl falsch?
Danke.
Mögliche Duplikat [Elasticsearch: Root Mapping-Definition hat den Index nicht unterstützte Parameter: nicht \ _analyzed] (https://stackoverflow.com/questions/39288997/elasticsearch -root-mapping-definition-has-nicht-unterstützt-Parameter-index-nicht-a) –