Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
es dynamic templates
{
"mytemplate": {
"mappings": {
"_default_": {
"_all": {
"enabled": false
},
"_ttl": {
"default": "1d",
"enabled": true
},
"dynamic_templates": [
{
"int_template": {
"match_mapping_type": "long",
"mapping": {
"type": "integer"
},
"match": "*"
},
"float_template": {
"match_mapping_type": "double",
"mapping": {
"type": "float"
},
"match": "*"
},
"string_template": {
"match_mapping_type": "string",
"mapping": {
"index": "not_analyzed",
"type": "string"
},
"match": "*"
}
}
],
"_source": {
"enabled": true
}
}
}
}
}
@unthingable

This comment has been minimized.

Copy link
Owner Author

commented Jun 17, 2013

What is wrong with this template?

[indices/create]]; nested: MapperParsingException[mapping [_default_]]; nested: MapperParsingException[A dynamic template must be defined with a name]; ","status":400}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.