We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
The following template mapping
curl -XPUT http://localhost:9200/_template/service_01 -d '{ "template" : "service*", "order": 1, "settings" : { "index.cache.field.type" : "soft", "index.refresh_interval" : "5s", "index.store.compress.stored" : true, "mapping.allow_type_wrapper": true }, "mappings" : { "default" : { "_all" : {"enabled" : false}, "_timestamp" : {"enabled" : true,"path" : "0STARTTIMESTAMP","format" : "YYYY/MM/dd HH:mm:ss"}, "properties" : { "0STARTTIMESTAMP": { "type": "date", "format": "YYYY/MM/dd HH:mm:ss" }, "STOPTIMESTAMP": { "type": "date", "format": "YYYY/MM/dd HH:mm:ss" } } } } }'
Works great in ES 1.4.4. For the below data.
{"index":{"_index":"service_sapstats","_type":"mytype"}} {"0STARTTIMESTAMP":"2015/02/13 13:00:00","*STOPTIMESTAMP":"2015/02/13 13:15:00","data":"somedata"}
But in ES 2.0.0 it throws the below exceptions.
{"index":{"_index":"service_sapstats","_type":"SAM","_id":null,"status":400,"error":{"type":"mapper_parsing_exception","reason":"mapping [default]","caused_by":{"type":"mapper_parsing_exception","reason":"Mapping definition for [_timestamp] has unsupported parameters: [path : 0STARTTIMESTAMP]"}}
in ES 2.0.0
The text was updated successfully, but these errors were encountered:
These features were explicitly removed from 2.0. See #8143 and #6677.
Sorry, something went wrong.
@nithyanv You can create your own date type field (which already supports timestamps).
date
@rjernst hey, do you know whether I have to re-index everything because of that : https://discuss.elastic.co/t/upgrade-from-1-7-x-to-2-2-0--timestamp-mapping-issue/41894
The reindexing would took 47 hours, so I'm kinda screwed...
No branches or pull requests
Hi,
The following template mapping
Works great in ES 1.4.4. For the below data.
But in ES 2.0.0 it throws the below exceptions.
in ES 2.0.0
The text was updated successfully, but these errors were encountered: