Newer
Older
sisyphe-kibana / elasticsearch-template.json
{
  "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
            }
          }
        }
      }
    }
  }
}