Last active
December 18, 2015 14:48
-
-
Save unthingable/5799510 to your computer and use it in GitHub Desktop.
es dynamic templates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is wrong with this template?