Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index Templates: Allow to place them under config/templates #1703

Closed
kimchy opened this issue Feb 15, 2012 · 1 comment
Closed

Index Templates: Allow to place them under config/templates #1703

kimchy opened this issue Feb 15, 2012 · 1 comment

Comments

@kimchy
Copy link
Member

kimchy commented Feb 15, 2012

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
                }
            }
        }
    }
}
@kimchy kimchy closed this as completed in 103f587 Feb 15, 2012
@medcl
Copy link
Contributor

medcl commented Mar 19, 2012

this feature is very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants