{
  "dynamic_templates": [
    {
      "all": {
        "match": "*",
        "match_mapping_type": "string",
        "mapping": {
          "type": "text",
          "analyzer": "folding",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        }
      }
    }
  ],
  "properties": {
    "properties": {
      "properties": {
        "firstVisit": {
          "type": "date"
        },
        "lastVisit": {
          "type": "date"
        },
        "previousVisit": {
          "type": "date"
        },
        "nbOfVisits": {
          "type": "long"
        }
      }
    }
  }
}