elasticsearch/elasticsearch — Issue #1703: Index Templates: Allow to place them under config/templates
Author: kimchy
Created: 2012-02-15 09:45:33+00:00
State: open
Labels: enhancement, v0.19.0.RC3

Allow to place index templates under the `config` location within the `templates` directory. For example, a file called `config/templates/tempalte_1.json` can be placed and it will be applied when it matches an index creation. A sample content for the mentioned file can be:

{
"template_1" : {
"template" : "*",
"settings" : {
"index.number_of_shards" : 2
},
"mappings" : {
"_default_" : {
"_source" : {
"enabled" : false
}
},
"type1" : {
"_all" : {
"enabled" : false
}
}
}
}
}