# Mapper Parsing exception Root mapping definition has unsupported parameters

**URL:** https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-parameters/73993
**Category:** Elasticsearch
**Created:** [February 5, 2017, 7:34pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-parameters/73993 "2017-02-05T19:34:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jaininaveen](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jaininaveen](https://discuss.elastic.co/u/jaininaveen)
#### Post date: [February 5, 2017, 7:34pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-parameters/73993/1 "2017-02-05T19:34:34Z")

</div>

Hi,

I am trying to create an index with autocomplete support successfully but I am unable to add data into it.  
Please help me on this, I stuck on this error from last 48hrs.

Please look at the attachment for the settings

PUT [http://localhost:9200/my\_index/\_mapping/users/](http://localhost:9200/my_index/_mapping/users/)  
Input  
{  
"userId": "2",  
"userFirstName": "m4",  
"userLastName": "m4",  
"userMobile": "40475341",  
"userEmail": "test@gmail.com",  
"userSpecialization": "1:3",  
"userCityId": "6",  
"userCityName":"Hyderabad"  
}  
Output:  
{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [userId : 2] [userFirstName : m4] [userLastName : m4] [userMobile : 40475341] [userEmail : [test@gmail.com](mailto:test@gmail.com)] [userSpecialization : 1:3] [userCityId : 6] [userCityName : Hyderabad]"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [userId : 2] [userFirstName : m4] [userLastName : m4] [userMobile : 40475341] [userEmail : [test@gmail.com](mailto:test@gmail.com)] [userSpecialization : 1:3] [userCityId : 6] [userCityName : Hyderabad]"  
},  
"status": 400  
}

Settings:  
{  
"my\_index": {  
"aliases": {

```
    },
    "mappings": {
      "practices": {
        "_all": {
          "analyzer": "nGram_analyzer",
          "search_analyzer": "whitespace_analyzer"
        },
        "properties": {
          "practiceCity": {
            "type": "string",
            "index":"analyzed"
          },
          "practiceId": {
            "type": "long",
            "index":"not_analyzed"
          },
          "practiceName": {
            "type": "string",
            "boost": 10,
            "index":"analyzed"
          },
          "practicePhone": {
            "type": "long",
            "boost": 10,
            "index":"analyzed"
          },
          "practiceService": {
            "type": "string",
            "boost": 5,
            "index":"not_analyzed"
          }
        }
      },
      "users": {
        "_all": {
          "analyzer": "nGram_analyzer",
          "search_analyzer": "whitespace_analyzer"
        },
        "properties": {
          "userCityId": {
            "type": "long",
            "index":"not_analyzed"
          },
          "userCityName": {
            "type": "string",
            "index":"not_analyzed"
          },
          "userEmail": {
            "type": "string",
            "index":"analyzed"
          },
          "userFirstName": {
            "type": "string",
            "boost": 10,
            "index":"analyzed"
          },
          "userId": {
            "type": "long"
          },
          "userLastName": {
            "type": "string",
            "boost": 10,
            "index":"not_analyzed"
          },
          "userMobile": {
            "type": "string",
            "index":"analyzed"
          },
          "userSpecialization": {
            "type": "string",
            "boost": 5,
            "index":"not_analyzed"
          }
        }
      }
    },
    "settings": {
      "index": {
        "analysis": {
          "filter": {
            "nGram_filter": {
              "max_gram": "20",
              "type": "nGram",
              "min_gram": "3",
              "token_chars": [
                "letter",
                "digit",
                "punctuation",
                "symbol"
              ]
            }
          },
          "analyzer": {
            "nGram_analyzer": {
              "type": "custom",
              "filter": [
                "lowercase",
                "asciifolding",
                "nGram_filter"
              ],
              "tokenizer": "whitespace"
            },
            "whitespace_analyzer": {
              "type": "custom",
              "filter": [
                "lowercase",
                "asciifolding"
              ],
              "tokenizer": "whitespace"
            }
          }
        },
        "number_of_replicas": "1",
        "number_of_shards": "5"
      }
    }
  }
}
```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 5, 2017, 7:34pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-root-mapping-definition-has-unsupported-parameters/73993/2 "2017-03-05T19:34:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
