diff --git a/elasticsearch-template.json b/elasticsearch-template.json new file mode 100644 index 0000000..7363e73 --- /dev/null +++ b/elasticsearch-template.json @@ -0,0 +1,74 @@ +{ + "index_patterns": "analyse*", + "template": { + "settings": { + "index.refresh_interval": "5s", + "index.mapping.total_fields.limit": 1000000, + "number_of_shards": "5" + }, + "mappings": { + "dynamic_templates": [ + { + "string_fields": { + "match": "*", + "match_mapping_type": "string", + "mapping": { + "type": "text", + "index": true, + "norms": false, + "fielddata": false, + "fields": { + "raw": { + "type": "keyword", + "index": true, + "doc_values": true, + "ignore_above": 256 + } + } + } + } + } + ], + "properties": { + "xpath.publicationYear": { + "type": "date", + "ignore_malformed": true + }, + "@timestamp": { + "type": "date", + "doc_values": true + }, + "@version": { + "type": "keyword", + "index": true + }, + "pdfWordByPage": { + "type": "double", + "doc_values": true + }, + "geoip": { + "type": "object", + "dynamic": true, + "properties": { + "ip": { + "type": "ip", + "doc_values": true + }, + "location": { + "type": "geo_point", + "doc_values": true + }, + "latitude": { + "type": "double", + "doc_values": true + }, + "longitude": { + "type": "double", + "doc_values": true + } + } + } + } + } + } +} \ No newline at end of file