title: Setting up default mapping Elasticsearch
body: <p>From the documentation you can set up default mapping definition for every index just putting the .json file inside $ELASTICSEARCH_HOME/config/mappings/_default</p>
  
  <p>However, after doing this, I just get the error:</p>
  
  <p>MapperParsingException[mapping [default_mapping]]; nested: MapperParsingException[Root type mapping not empty after parsing! </p>
  
  <p>My mapping file looks like:</p>
  
  <pre><code> {
    "event" : {
      "dynamic_templates" : [
        {
          "template_1" : {
            "match" : "*",
            "mapping" : {
              "type" : "string",
              "index": "not_analyzed"
            }
          }
        }
      ]
    }
  }
  </code></pre>
  
  <p>The problem is that I need to setup several things for each index I create, but I don't want to care about updating the map per index, since I would need to ask if the index exists before doing this. That means, during my workflow I just want to index documents, do not want to care about settings stuff.</p>
  
  <p>Thanks in advance!</p>