The following api request sometimes returns that date is a string, other times it's a long.
It looks to be about 50/50 but random whether it returns string or long. I expected it would always return the same. What am I missing?
We are on Elasticsearch 1.1.2 if that matters.
Thanks,
Stephen
$ for ((i=0;i<2;++i)) do curl -s 'http://localhost:9200/logstash-2016.01.11/_mapping/logs/field/date?pretty=true'; done
{
"logstash-2016.01.11" : {
"mappings" : {
"logs" : {
"date" : {
"full_name" : "date", "mapping" : {"date":{"type":"string","norms":{"enabled":false},"fields":{"raw":{"type":"string","index":"not_analyzed","ignore_above":256}}}}
}
}
}
}
}
{
"logstash-2016.01.11" : {
"mappings" : {
"logs" : {
"date" : {
"full_name" : "date", "mapping" : {"date":{"type":"long"}}
}
}
}
}
}