Index template :
{
"template" : "index-*",
"settings" : {
"index.refresh_interval" : "10s"
},
"mappings" : {
"_default_" : {
"_all" : {"enabled" : true},
"dynamic_templates" : [ {
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : { "type" : "string", "index" : "analyzed", "omit_norms" : true }
}
} ],
"properties" : {
"@version": { "type": "string", "index": "not_analyzed" },
"attribute_map.Machine": { "type": "string", "index": "not_analyzed" },
"attribute_map.Service": { "type": "string", "index": "not_analyzed" },
"attribute_map.Task": { "type": "string", "index": "not_analyzed" },
"guid": { "type": "string", "index": "not_analyzed" },
"system_info.cluster_id": { "type": "string", "index": "not_analyzed" },
"system_info.cluster_name": { "type": "string", "index": "not_analyzed" },
"system_info.release_name": { "type": "string", "index": "not_analyzed" },
"geoip" : {
"type" : "object",
"dynamic": true,
"path": "full",
"properties" : {
"location" : { "type" : "geo_point" }
}
}
}
}
}
}
But kibana is showing fields such as system_info.cluster_name as analyzed. Am I missing any step here?
- As some data already existed in the system.
- I delete all the indices
- Updated the mapping
- Repushed the data
( BTW is deleting old data necessary for the new mapping to take effect? )