I have been using elasticsearch 2.X to 5.1 for quite some time for aggregation. The business logic does not need the string fields to be analysed.
In 5.1 when I set the field type as follows in the mapping template:
"myfield_name" : {
"type" : "keyword"
},
I can see in kibana management -> index pattern , the field definition is like this
But when I am trying out elasticsearch 5.5, the same setting of
"myfield_name" : {
"type" : "keyword"
},
Kibana index pattern shows there are two fields: myfield_name and myfield_name.keyword
Will it waste space in 5.5 to have two fields of different type to represent one field?
How can I define the schema to only have 1 field like elasticsearch 5.1?