Skip to content

Instantly share code, notes, and snippets.

@unthingable
Last active December 18, 2015 01:59

Revisions

  1. unthingable renamed this gist Jun 10, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. unthingable revised this gist Jun 4, 2013. 1 changed file with 88 additions and 0 deletions.
    88 changes: 88 additions & 0 deletions template.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,88 @@
    {
    "foobar": {
    "mappings": {
    "_default_": {
    "_all": {
    "enabled": false
    },
    "_ttl": {
    "default": "1d",
    "enabled": true
    },
    "dynamic_templates": [
    {
    "string_template": {
    "match_mapping_type": "string",
    "mapping": {
    "index": "not_analyzed",
    "type": "string"
    },
    "match": "*"
    }
    }
    ],
    "_source": {
    "enabled": true
    }
    },
    "pwpage": {
    "_all": {
    "enabled": false
    },
    "_parent": {
    "type": "rtp"
    },
    "_ttl": {
    "default": "1d",
    "enabled": true
    },
    "dynamic_templates": [
    {
    "string_template": {
    "match_mapping_type": "string",
    "mapping": {
    "index": "not_analyzed",
    "type": "string"
    },
    "match": "*"
    }
    }
    ],
    "_source": {
    "enabled": true
    }
    },
    "wpage": {
    "_all": {
    "enabled": false
    },
    "_parent": {
    "type": "rtp"
    },
    "_ttl": {
    "default": "1d",
    "enabled": true
    },
    "dynamic_templates": [
    {
    "string_template": {
    "match_mapping_type": "string",
    "mapping": {
    "index": "not_analyzed",
    "type": "string"
    },
    "match": "*"
    }
    }
    ],
    "_source": {
    "enabled": true
    }
    }
    },
    "template": "*",
    "settings": {
    "index.mapping.ignore_malformed": true
    }
    }
    }
  3. unthingable created this gist Jun 4, 2013.
    236 changes: 236 additions & 0 deletions gistfile1.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,236 @@
    {
    "foobar" : {
    "pwpage" : {
    "dynamic_templates" : [ {
    "string_template" : {
    "mapping" : {
    "index" : "not_analyzed",
    "type" : "string"
    },
    "match" : "*",
    "match_mapping_type" : "string"
    }
    } ],
    "_all" : {
    "enabled" : false
    },
    "_parent" : {
    "type" : "rtp"
    },
    "_routing" : {
    "required" : true
    },
    "_ttl" : {
    "enabled" : true,
    "default" : 86400000
    },
    "properties" : {
    "elapsed" : {
    "type" : "double"
    },
    "end" : {
    "type" : "date",
    "format" : "dateOptionalTime"
    },
    "headers" : {
    "properties" : {
    "hostname" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    }
    }
    },
    "object" : {
    "properties" : {
    "cookies" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "get_params" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "headers" : {
    "type" : "object"
    },
    "html" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "opener" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "post_params" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "proxy" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "request" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "status" : {
    "type" : "long"
    },
    "url" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    }
    }
    },
    "start" : {
    "type" : "date",
    "format" : "dateOptionalTime"
    }
    }
    },
    "wpage" : {
    "dynamic_templates" : [ {
    "string_template" : {
    "mapping" : {
    "index" : "not_analyzed",
    "type" : "string"
    },
    "match" : "*",
    "match_mapping_type" : "string"
    }
    } ],
    "_all" : {
    "enabled" : false
    },
    "_parent" : {
    "type" : "rtp"
    },
    "_routing" : {
    "required" : true
    },
    "_ttl" : {
    "enabled" : true,
    "default" : 86400000
    },
    "properties" : {
    "elapsed" : {
    "type" : "double"
    },
    "end" : {
    "type" : "date",
    "format" : "dateOptionalTime"
    },
    "headers" : {
    "properties" : {
    "hostname" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    }
    }
    },
    "object" : {
    "properties" : {
    "cookies" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "get_params" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "headers" : {
    "type" : "object"
    },
    "html" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "linked_page" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "opener" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "post_params" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "request" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    },
    "status" : {
    "type" : "long"
    },
    "url" : {
    "type" : "string",
    "index" : "not_analyzed",
    "omit_norms" : true,
    "index_options" : "docs"
    }
    }
    },
    "start" : {
    "type" : "date",
    "format" : "dateOptionalTime"
    }
    }
    },
    "_default_" : {
    "dynamic_templates" : [ {
    "string_template" : {
    "mapping" : {
    "index" : "not_analyzed",
    "type" : "string"
    },
    "match" : "*",
    "match_mapping_type" : "string"
    }
    } ],
    "_all" : {
    "enabled" : false
    },
    "_ttl" : {
    "enabled" : true,
    "default" : 86400000
    },
    "properties" : { }
    }
    }
    }