Howdy All,

Just looking to get some advice on how to get the following dynamic mapping 
working correctly. I'm fairly new to the mapping world in ES and would like 
some help if possible. Can you let me know if this syntax is correct? Thanks

{
"template": "logstash-*",
"settings": {
"index.refresh_interval": "5s"
},
"mappings": {
"_default_": {
"_all": {
"enabled": true
},
"dynamic_templates": [{
"address_fields": {
"match": "*address",
"match_mapping_type": "string",
"mapping": {
"type": "ip",
"index": "not_analyzed",
"omit_norms": true,
 }
}
},
{
"port_fields": {
"match": "*port",
"match_mapping_type": "string",
"mapping": {
"type": "integer",
"index": "not_analyzed",
"omit_norms": true,
 }
}
},
{
"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index": "not_analyzed",
"omit_norms": true,
"fields": {
"raw": {
"type": "string",
"index": "not_analyzed",
"ignore_above": 256
}
}
}
}
}],
"properties": {
"@version": {
"type": "string",
"index": "not_analyzed"
},
"geoip": {
"type": "object",
"dynamic": true,
"path": "full",
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
}
}


-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2e5cd80e-7f39-4bc6-9da0-8404a13e3b69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to