Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "tpl_data": {
- "order": 0,
- "template": "site-data*",
- "settings": {
- "index.refresh_interval": "5s"
- },
- "mappings": {
- "_default_": {
- "dynamic_templates": [
- {
- "boolean_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "boolean"
- },
- "match": "*.boolean"
- }
- },
- {
- "ip_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "ip"
- },
- "match": "*.ip"
- }
- },
- {
- "int_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "integer"
- },
- "match": "*.integer"
- }
- },
- {
- "float_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "float"
- },
- "match": "*.float"
- }
- },
- {
- "double_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "double"
- },
- "match": "*.double"
- }
- },
- {
- "long_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "long"
- },
- "match": "*.long"
- }
- },
- {
- "geo_point_fields": {
- "mapping": {
- "index": "not_analyzed",
- "omit_norms": true,
- "type": "geo_point"
- },
- "match": "*.geo_point"
- }
- },
- {
- "date_epoch": {
- "mapping": {
- "index": "analyzed",
- "omit_norms": true,
- "type": "date",
- "_timestamp" : {
- "enabled" : true,
- "path" : "timestamp_epoch"
- },
- "transform": {
- "script": "ctx._source['timestamp_epoch'] = ctx._source['timestamp_epoch'] * 1000",
- "params": {},
- "lang": "groovy"
- }
- },
- "match": "timestamp_epoch"
- }
- },
- {
- "date_iso8601": {
- "mapping": {
- "index": "analyzed",
- "type": "date",
- "format": "ordinal_date_time_no_millis",
- "_timestamp" : {
- "enabled" : true,
- "path" : "timestamp_iso8601"
- }
- },
- "match": "timestamp_iso8601"
- }
- },
- {
- "string_fields": {
- "mapping": {
- "index": "analyzed",
- "omit_norms": true,
- "type": "string",
- "fields": {
- "raw": {
- "index": "not_analyzed",
- "ignore_above": 256,
- "type": "string"
- }
- }
- },
- "match": "*",
- "match_mapping_type": "string"
- }
- }
- ],
- "properties": {
- "geoip": {
- "dynamic": true,
- "path": "full",
- "properties": {
- "location": {
- "type": "geo_point"
- }
- },
- "type": "object"
- },
- "@version": {
- "index": "not_analyzed",
- "type": "string"
- }
- },
- "_all": {
- "enabled": true
- }
- }
- },
- "aliases": {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement