Skip to content

Instantly share code, notes, and snippets.

@avleen
Created February 26, 2015 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avleen/524f36e3b10a431d90f3 to your computer and use it in GitHub Desktop.
Save avleen/524f36e3b10a431d90f3 to your computer and use it in GitHub Desktop.
"dynamic_templates": [
{
"long_template" : {
"match" : "l_*",
"mapping" : { "type" : "long", "index" : "not_analyzed" }
}
},
{
"double_template" : {
"match" : "d_*",
"mapping" : { "type" : "double", "index" : "not_analyzed" }
}
},
{
"bool_template" : {
"match" : "b_*",
"mapping" : { "type" : "boolean", "index" : "not_analyzed" }
}
},
{
"string_template" : {
"match" : "*",
"mapping": { "type": "string", "index": "not_analyzed" },
"match_mapping_type" : "string"
}
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment