# Failed to parse mapping \[scheduler\]: mapper \[cluster\] of different type, current\_type \[keyword\], merged\_type \[ObjectMapper\]

**URL:** <https://discuss.elastic.co/t/failed-to-parse-mapping-scheduler-mapper-cluster-of-different-type-current-type-keyword-merged-type-objectmapper/88038>\
**Category:** Elasticsearch\
**Created:** [June 2, 2017, 8:52am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-scheduler-mapper-cluster-of-different-type-current-type-keyword-merged-type-objectmapper/88038 "2017-06-02T08:52:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaoulaari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khaoulaari/32/24288_2.png) [@khaoulaari](https://discuss.elastic.co/u/khaoulaari)\
**Post date:** [June 2, 2017, 8:52am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-scheduler-mapper-cluster-of-different-type-current-type-keyword-merged-type-objectmapper/88038/1 "2017-06-02T08:52:28Z")

</div>

Hello everyone i've a problem with creating my index with a specific mapping so while i'm trying to create it with the following command  
`curl -XPUT http://localhost:9200/inviso-cluster -d @inviso/elasticsearch/mappings/cluster-settings.json`

this is my mapping that i upgraded from ES 2.7 to match with ES 5.3

```
{
    "settings": {
        "index.analysis.analyzer.default.type": "standard",
        "index.mapper.dynamic": "true",
        "index.number_of_replicas": "1",
        "index.number_of_shards": "6",
        "index.mapping.ignore_malformed" : "true"
    },
    "mappings": {
        "_default_": {
            "_all": {
                "enabled": true
            }
        },
        "my_type": {
          "properties": {
            "cluster": {
              "type": "text",
              "fielddata": true,
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              }
            }
           }
         },
        "applications": {
            "properties": {
                "cluster": {
                    "index": "true",
                    "type": "keyword"
                },
                "cluster.id": {
                    "index": "true",
                    "type": "keyword"
                },
                "id": {
                    "index": "true",
                    "type": "keyword"
                }
            }
          },
        "metrics": {
            "properties": {
                "cluster": {
                    "index": "true",
                    "type": "keyword"
                },
                "cluster.id": {
                    "index": "true",
                    "type": "keyword"
                }
             }
        },
        "scheduler": {
            "properties": {
                "cluster": {
                    "index": "true",
                    "type": "keyword"
                },
                "cluster.id": {
                    "index": "true",
                    "type": "keyword"
                }
            }
        }

    }
}

```

and i'm getting the following error :

> {"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"Failed to parse mapping [scheduler]: mapper [cluster] of different type, current\_type [keyword], merged\_type [ObjectMapper]"}],"type":"mapper\_parsing\_exception","reason":"Failed to parse mapping [scheduler]: mapper [cluster] of different type, current\_type [keyword], merged\_type [ObjectMapper]","caused\_by":{"type":"illegal\_argument\_exception","reason":"mapper [cluster] of different type, current\_type [keyword], merged\_type [ObjectMapper]"}},"status":400}

can anyone help me plz !

---

<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:** [June 30, 2017, 8:52am UTC](https://discuss.elastic.co/t/failed-to-parse-mapping-scheduler-mapper-cluster-of-different-type-current-type-keyword-merged-type-objectmapper/88038/2 "2017-06-30T08:52:50Z")

</div>

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