# Root mapping definition has unsupported parameters

**URL:** <https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/42090>\
**Category:** Elasticsearch\
**Created:** [February 18, 2016, 1:59am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/42090 "2016-02-18T01:59:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florin\_Andrei](https://avatars.discourse-cdn.com/v4/letter/f/c77e96/32.png) [@Florin\_Andrei](https://discuss.elastic.co/u/Florin_Andrei)\
**Post date:** [February 18, 2016, 1:59am UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/42090/1 "2016-02-18T01:59:52Z")

</div>

ES 2.2.0

I get this error:

```
# curl -XPUT http://localhost:9200/vendnext_new_no_auth_index/ -d @./vendnext_new_no_auth_index.config.json
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [search_analyzer : search_ngram] [index_analyzer : index_ngram]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [vendnext_new_no_auth_type]: Root mapping definition has unsupported parameters: [search_analyzer : search_ngram] [index_analyzer : index_ngram]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [search_analyzer : search_ngram] [index_analyzer : index_ngram]"}},"status":400}

```

With this schema:

```
{
  "mappings": {
    "vendnext_new_no_auth_type":{
      "index_analyzer": "index_ngram",
      "search_analyzer": "search_ngram",
     "properties": {
       "userStatus":{
         "type" : "nested",
         "include_in_parent": true,
         "properties": {
            "underWatch" : {"type": "boolean" },
            "provisional" : {"type": "boolean" },
            "suspended" : {"type": "boolean" },
            "deactivated" : {"type": "boolean" }
          }
       },"deviceStatus":{
         "type" : "nested",
         "include_in_parent": true,
         "properties": {
            "underWatch" : {"type": "boolean" },
            "offLocation" : {"type": "boolean" },
            "ignore" : {"type": "boolean" },
            "snoozeUntil" : {"type": "boolean" }
          }
       },"vms":{
         "type": "nested",
         "include_in_parent": true,
         "properties": {
           "vagabond":{"type":"boolean"},
           "parlevel":{"type":"boolean"}
         }
       }
     }
    }
  },
  "settings": {
    "analysis": {
      "filter": {
        "ngram_filter":{
          "type":"ngram",
          "min_gram":3,
          "max_gram":35
        }
      },
      "analyzer": {
        "index_ngram":{
          "type": "custom",
          "tokenizer": "uax_url_email",
          "filter": ["ngram_filter","lowercase"]
        },
        "search_ngram":{
          "type": "custom",
          "tokenizer": "uax_url_email",
          "filter": "lowercase"
        }
      }
    }
  }
}

```

Any way to avoid this? Thanks.

---

<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:** [July 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/root-mapping-definition-has-unsupported-parameters/42090/2 "2017-07-05T23:15:30Z")

</div>


