Skip to content

Instantly share code, notes, and snippets.

@mkuzmin
Created September 13, 2015 10:48
Show Gist options
  • Save mkuzmin/e906c13194365a97f82d to your computer and use it in GitHub Desktop.
Save mkuzmin/e906c13194365a97f82d to your computer and use it in GitHub Desktop.
Elasticsearch mapping template
{
"template": "*",
"mappings": {
"_default_": {
"properties": {
"@timestamp" : {
"type" : "date"
},
"geoip": {
"type": "object",
"properties": {
"location": {
"type": "geo_point"
}
}
}
},
"dynamic_templates" : [
{
"all" : {
"match" : "*",
"mapping" : {
"index" : "not_analyzed"
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment