title: Elastic Schema Error - Root mapping definition has unsupported parameters
body: <p>I am using elasticsearch version 2.1.1. When I try to create schema with the following payload, it gives Unsupported Parameters error:</p>
  
  <pre><code>URL : http://localhost:9200/enron/mails/_mapping
  Operation: PUT
  Payload:
      {
        "enron": {
          "properties": {
            "message_id": {
              "type": "string",
              "index": "not_analyzed",
              "store": "yes"
            },
            "from": {
              "type": "string",
              "index": "not_analyzed",
              "store": "yes"
            },
            "to": {
              "type": "string",
              "index": "not_analyzed",
              "store": "yes",
              "multi_field": "yes"
            },
            "x_cc": {
              "type": "string",
              "index": "not_analyzed",
              "store": "yes",
              "multi_field": "yes"
            },
            "x_bcc": {
              "type": "string",
              "index": "not_analyzed",
              "store": "yes",
              "multi_field": "yes"
            },
            "date": {
              "type": "date",
              "index": "not_analyzed",
              "store": "yes"
            },
            "subject": {
              "type": "string",
              "index": "analyzed",
              "store": "yes"
            },
            "body": {
              "type": "string",
              "index": "analyzed",
              "store": "yes"
            }
          }
        }
      }
  </code></pre>
  
  <p>The error message:</p>
  
  <pre><code>    {
        "error": {
          "root_cause": [
            {
              "type": "mapper_parsing_exception",
              "reason": "Root mapping definition has unsupported parameters:  [enron : {properties={message_id={type=string, index=not_analyzed, store=yes}, from={type=string, index=not_analyzed, store=yes}, to={type=string, index=not_analyzed, store=yes, multi_field=yes}, x_cc={type=string, index=not_analyzed, store=yes, multi_field=yes}, x_bcc={type=string, index=not_analyzed, store=yes, multi_field=yes}, date={type=date, index=not_analyzed, store=yes}, subject={type=string, index=analyzed, store=yes}, body={type=string, index=analyzed, store=yes}}}]"
            }
          ],
          "type": "mapper_parsing_exception",
          "reason": "Root mapping definition has unsupported parameters:  [enron : {properties={message_id={type=string, index=not_analyzed, store=yes}, from={type=string, index=not_analyzed, store=yes}, to={type=string, index=not_analyzed, store=yes, multi_field=yes}, x_cc={type=string, index=not_analyzed, store=yes, multi_field=yes}, x_bcc={type=string, index=not_analyzed, store=yes, multi_field=yes}, date={type=date, index=not_analyzed, store=yes}, subject={type=string, index=analyzed, store=yes}, body={type=string, index=analyzed, store=yes}}}]"
        },
        "status": 400
      }
  </code></pre>
  
  <p>Can some one please help me identify the error here? </p>