Hi all,
I configuring docker container with ES v2. I use next template:
{
  "template": "*",
  "order": 10,
  "settings": {},
  "mappings": {
    "_default_": {
      "dynamic_templates": [
        {
          "string_fields": {
            "match": "*",
            "match_mapping_type": "string",
            "mapping": {
              "index": "not_analyzed",
              "type": "string"
            }
          }
        }
      ]
    }
  }
}
If I put it via HTTP request - it works fine:
[2015-11-07 23:01:06,924][INFO ][cluster.metadata         ] [elastic-node] [jpolli-events-2015-11-07] creating index, cause [auto(index api)], templates [template_1], shards [5]/[1], mappings [_default_, storage_client_delete]
but if I place it in config/template path it doesn't applied:
[2015-11-07 23:02:13,915][INFO ][cluster.metadata         ] [elastic-node] [jpolli-events-2015-11-07] creating index, cause [auto(index api)], templates [], shards [5]/[1], mappings [http_response]
I have specified config path:
path.conf : "/usr/share/elasticsearch/config/"
and place template to /usr/share/elasticsearch/config/templates dir but it doesn't work. Order modification also doesn't help.
Any ideas what's wrong?