Skip to content

Instantly share code, notes, and snippets.

@Kinghack
Last active August 29, 2015 13:57
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 Kinghack/9799101 to your computer and use it in GitHub Desktop.
Save Kinghack/9799101 to your computer and use it in GitHub Desktop.
{
"settings" : {
"number_of_shards" : 10,
"number_of_replicas" : 1
},
"mappings":{
"_default_" : {
"date_detection" : false,
"numeric_detection" : true,
"store" : "no",
"_id" : {
"path" : "id"
},
"_type" : {
"enabled" : true
},
"_timestamp" : {
"enabled" : true,
"store" : "no"
},
"_source" : {
"enabled" : false
},
"_all" : {
"enabled" : false
},
"dynamic_templates" : [
{
"template_tags" : {
"match" : "*s",
"match_mapping_type" : "string",
"mapping" : {
"analyzer" : "tags"
}
}
}, {
"template_string" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}, {
"template_long" : {
"match" : "*",
"match_mapping_type" : "long",
"mapping" : {
"ignore_malformed":true
}
}
}, {
"template_float" : {
"match" : "*",
"match_mapping_type" : "float",
"mapping" : {
"ignore_malformed":true
}
}
}, {
"template_double" : {
"match" : "*",
"match_mapping_type" : "double",
"mapping" : {
"ignore_malformed":true
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment