Skip to content

Instantly share code, notes, and snippets.

@ei-grad
Created December 8, 2015 02:35
Show Gist options
  • Save ei-grad/c2c8b76cfdca6ece324d to your computer and use it in GitHub Desktop.
Save ei-grad/c2c8b76cfdca6ece324d to your computer and use it in GitHub Desktop.
{
"template": "mixpanel-*",
"settings": {"index.refresh_interval": "1m"},
"mappings": {
"_default_": {
"_all": {"enabled": false},
"date_detection": false,
"dynamic_templates": [
{"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {"type": "string", "index": "not_analyzed"}
}},
{"long_fields": {
"match": "*",
"match_mapping_type": "long",
"mapping": {"type": "long", "norms": {"enabled": false}}
}},
{"float_fields": {
"match": "*",
"match_mapping_type": "float",
"mapping": {"type": "float", "norms": {"enabled": false}}
}},
{"timestamp_fields": {
"match": "*_timestamp",
"mapping": {"type": "long", "norms": {"enabled": false}}
}},
{"integer_fields": {
"match": "*",
"match_mapping_type": "integer",
"mapping": {"type": "integer", "norms": {"enabled": false}}
}},
{"bool_fields": {
"match": "*",
"match_mapping_type": "bool",
"mapping": {"type": "bool", "norms": {"enabled": false}}
}}
],
"properties": {
"@timestamp": {"type": "date", "format": "dateOptionalTime"},
"@version": {"type": "integer", "norms": {"enabled": false}}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment