Skip to content

Instantly share code, notes, and snippets.

@pheaver
Created February 15, 2014 00:49
Show Gist options
  • Save pheaver/9012653 to your computer and use it in GitHub Desktop.
Save pheaver/9012653 to your computer and use it in GitHub Desktop.
curl -XDELETE localhost:9200/_template/template_1 -d '
{
"template": "*",
"mappings": {
"test": {
"dynamic_templates": [
{
"template_1": {
"match": "*",
"mapping": {
"type": "{dynamic_type}",
"index": "not_analyzed"
}
}
}
]
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment