# Root mapping definition has unsupported parameters (mapper\_parsing\_exception)

**URL:** <https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-mapper-parsing-exception/95399>\
**Category:** Elasticsearch\
**Created:** [August 1, 2017, 6:44pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-mapper-parsing-exception/95399 "2017-08-01T18:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheryar\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Sheryar\_Ahmed](https://discuss.elastic.co/u/Sheryar_Ahmed)\
**Post date:** [August 1, 2017, 6:44pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-mapper-parsing-exception/95399/1 "2017-08-01T18:44:52Z")

</div>

I am new to elasticsearch and I am stucked in a problem from couple of days. I have tried different solution provided on stackoverflow ES forum and other websites but they didn't work for me that's why I am posting this question. I am really sorry for the duplicate.

I am trying to add tokenizer": "uax\_url\_email" so that i can easily search email with query.

But when I am setting the mapping it Elastic Search is giving me this error Root mapping definition has unsupported parameters (mapper\_parsing\_exception)

I have tried to delete the index and recreate it but it also didn' help.

My mapping link.

[http://localhost:9200/users/user/\_mapping](http://localhost:9200/users/user/_mapping)

**My mappings**

```
{
"settings": {
            "analysis": {
                "analyzer": {
                    "urls-links-emails": {
                        "type": "custom",
                        "tokenizer": "uax_url_email"
                    }
                }
            }
        },
        "mappings":{
            "user": {
                "properties": {
                    "id" : {"type": "long"},
                    "first_name" : {"type": "text"},
                    "middle_name" : {"type": "text"},
                    "last_name" : {"type": "text"},
                    "full_name" : {"type": "text"},
                    "image" : {"type": "text"},
                    "email" : {"type": "text", "analyzer": "urls-links-emails"},
                    "mobile_number" : {"type": "text"},
                    "profile_image" : {"type": "text"},
                    "thumbnail" : {"type": "text"},
                    "role" : {"type": "text"},
                    "role_id" : {"type": "byte"},
                    "joined_date" : {"type": "date", "format": "yyyy-MM-dd HH:mm:ss"},
                    "updated_date" : {"type": "date", "format": "yyyy-MM-dd HH:mm:ss"}
                }
            }
        }
    }

```

**This is the error**

```
{
    "error": {
        "root_cause": [
            {
                "type": "mapper_parsing_exception",
                "reason": "Root mapping definition has unsupported parameters: [settings : {analysis={analyzer={urls-links-emails={type=custom, tokenizer=uax_url_email}}}}] [mappings : {user={properties={id={type=long}, first_name={type=text}, middle_name={type=text}, last_name={type=text}, full_name={type=text}, image={type=text}, email={type=text, analyzer=urls-links-emails}, mobile_number={type=text}, profile_image={type=text}, thumbnail={type=text}, role={type=text}, role_id={type=byte}, joined_date={type=date, format=yyyy-MM-dd HH:mm:ss}, updated_date={type=date, format=yyyy-MM-dd HH:mm:ss}}}}]"
            }
        ],
        "type": "mapper_parsing_exception",
        "reason": "Root mapping definition has unsupported parameters: [settings : {analysis={analyzer={urls-links-emails={type=custom, tokenizer=uax_url_email}}}}] [mappings : {user={properties={id={type=long}, first_name={type=text}, middle_name={type=text}, last_name={type=text}, full_name={type=text}, image={type=text}, email={type=text, analyzer=urls-links-emails}, mobile_number={type=text}, profile_image={type=text}, thumbnail={type=text}, role={type=text}, role_id={type=byte}, joined_date={type=date, format=yyyy-MM-dd HH:mm:ss}, updated_date={type=date, format=yyyy-MM-dd HH:mm:ss}}}}]"
    },
    "status": 400
}

```

Thanks for help

---

<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:** [August 29, 2017, 6:45pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters-mapper-parsing-exception/95399/2 "2017-08-29T18:45:02Z")

</div>

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