I have two environments, both running Elastic Search v. 5.1.2. I have no default mapping templates.
ES is creating a different mapping for the same field, in the two environments, as below. I could create a template, but I would rather not because it's work...anyone know why this might occur?
It's logstash, and I've looked at the first entries in the index (using kibana), and they appear identical to me.
env1:
"user_uuid": {
"type": "text",
"norms": false,
"fields": {
"keyword": {
"type": "keyword"
}
}
},
env2:
"user_uuid": {
"type": "text",
"norms": false,
"fields": {
"raw": {
"type": "keyword",
"ignore_above": 256
}
}
},
Note the type in env1 is "raw", that in env2 is "keyword". I expect "keyword", based on this article: https://www.elastic.co/blog/strings-are-dead-long-live-strings.
The es versions are:
env1:
"version" : {
"number" : "5.1.2",
"build_hash" : "c8c4c16",
"build_date" : "2017-01-11T20:18:39.146Z",
"build_snapshot" : false,
"lucene_version" : "6.3.0"
},
env2:
"version" : {
"number" : "5.1.2",
"build_hash" : "c8c4c16",
"build_date" : "2017-01-11T20:18:39.146Z",
"build_snapshot" : false,
"lucene_version" : "6.3.0"
},