title: Mapping definition for has unsupported parameters: [dynamic : true]
body: <p>I have been trying to make one of the fields being indexed to be dynamic and also changed the elasticsearch.yml for the same by adding  </p>
  
  <pre><code>index.mapper.dynamic: false
  </code></pre>
  
  <p>in the end and also restarted elasticsearch and kibana sense. Also tried with different fields and index names but I am still getting the same error :</p>
  
  <pre><code>{
  "error": {
    "root_cause": [
       {
          "type": "mapper_parsing_exception",
          "reason": "Mapping definition for [albumdetailid] has unsupported parameters:  [dynamic : true]"
       }
    ],
    "type": "mapper_parsing_exception",
    "reason": "Failed to parse mapping [package]: Mapping definition for [albumdetailid] has unsupported parameters:  [dynamic : true]",
    "caused_by": {
       "type": "mapper_parsing_exception",
       "reason": "Mapping definition for [albumdetailid] has unsupported parameters:  [dynamic : true]"
    }
  },
   "status": 400
  }
  </code></pre>
  
  <p>the code for adding index is below :</p>
  
  <pre><code>PUT /worldtest221
  { 
   "settings" : {
  
    "index" : {
      "creation_date" : "1474989052008",
      "uuid" : "Ae-7aFrLT466ZJL4U9QGLQ",
      "number_of_replicas" : "0",
      "analysis" : {
        "char_filter" : {
          "quotes" : {
            "type" : "mapping",
            "mappings" : [ "=&gt;'", "=&gt;'", "‘=&gt;'", "’=&gt;'", "‛=&gt;'" ]
          }
        },
        "filter" : {
          "nGram_filter" : {
            "max_gram" : "400",
            "type" : "nGram",
            "min_gram" : "1",
            "token_chars" : [ "letter", "digit", "punctuation", "symbol" ]
          }
        },
        "analyzer" : {
          "quotes_analyzer" : {
            "char_filter" : [ "quotes" ],
            "tokenizer" : "standard"
          },
          "nGram_analyzer" : {
            "type" : "custom",
            "filter" : [ "lowercase", "asciifolding", "nGram_filter" ],
            "tokenizer" : "whitespace"
          },
          "whitespace_analyzer" : {
            "type" : "custom",
            "filter" : [ "lowercase", "asciifolding" ],
            "tokenizer" : "whitespace"
          }
        }
      },
      "cache" : {
        "query_result" : {
          "enable" : "true"
        }
      },
      "number_of_shards" : "1", 
      "version" : {
        "created" : "2030099"
      } 
     }
   },
  
   "mappings" : {
    "package" : {
      "properties" : {
        "autosuggestionpackagedetail" : {
          "type" : "string",
          "index" : "not_analyzed"
        },
        "availability" : {
          "type" : "nested",
          "include_in_all" : false,
          "properties" : {
            "displaysequence" : {
              "type" : "long",
              "include_in_all" : false
            },
            "isquantityavailable" : {
              "type" : "boolean"
            },
            .....
        "metatags" : {
          "type" : "string",
          "include_in_all" : false
        },
        "minadultage" : {
          "type" : "long",
          "include_in_all" : false
        },
        "newmemberrewardpoints" : {
          "type" : "long",
          "include_in_all" : false
        },
        "packagealbum" : {
          "include_in_all" : false,
          "properties" : {
            "albumdetailid" : {
              "type" : "string",
              "include_in_all" : false,
              "dynamic": true
            }, 
  ....
  </code></pre>
  
  <p>Look at the second last line where I mention <strong>"dynamic" : true</strong></p>