# Kibana's Mapping conflict!

**URL:** https://discuss.elastic.co/t/kibanas-mapping-conflict/79833
**Category:** Kibana
**Created:** [March 24, 2017, 3:55am UTC](https://discuss.elastic.co/t/kibanas-mapping-conflict/79833 "2017-03-24T03:55:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)
#### Post date: [March 24, 2017, 3:55am UTC](https://discuss.elastic.co/t/kibanas-mapping-conflict/79833/1 "2017-03-24T03:55:38Z")

</div>

I'm seeing following through _Management_'s _Index Patterns_:

> Mapping conflict! A field is defined as several types (string, integer, etc) across the indices that match this pattern. You may still be able to use these conflict fields in parts of Kibana, but they will be unavailable for functions that require Kibana to know their type. Correcting this issue will require reindexing your data.

I applied

- [Mapping | Elasticsearch Reference [5.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html)
- [Reindex API | Elasticsearch Reference [5.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html)

however Kibana still identifies some keys as a _conflict_ (I believe value for that key is `null`).

Please advise

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [March 24, 2017, 5:45pm UTC](https://discuss.elastic.co/t/kibanas-mapping-conflict/79833/2 "2017-03-24T17:45:16Z")

</div>

I ran through a quick scenario where I had a mixed field of a few different types (including a null value) in different indices. I ran the mapping API for a new index, then ran the reindex API, and it successfully mapped the types to what I specified.

Here are the commands I ran to create the conflict, the mapping and the subsequent reindex (I ran them in order):

```auto

POST map-test-1/test
{
  "mixed": 0,
  "astr": "123str"
}

POST map-test-2/test
{
  "mixed": "astring",
  "astr": "bye"
}

POST map-test-3/test
{
  "astr": "hi"
}

PUT new-index-test
{
  "mappings": {
    "test": {
      "properties": {
        "mixed": {
          "type": "keyword"
        },
        "astr": {
          "type": "text"
        }
      }
    }
  }
}

POST _reindex
{
  "source": {
    "index": "map-test*"
  },
  "dest": {
    "index": "new-index-test"
  }
}

```

This successfully resulted in map-test-\* showing the conflict warning:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f9d0a7dcce93dfbe5fe8146fd55eae629d56ba17.png)

But not for `new-index-test`:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aaae6d9dfa67a7a3d7d4613a5bbc8cb923df8845.png)

Can you provide some more details? What is the final type you want to use for the field that has the conflict, and what are the wrong types it has?

---

<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: [April 21, 2017, 5:45pm UTC](https://discuss.elastic.co/t/kibanas-mapping-conflict/79833/3 "2017-04-21T17:45:31Z")

</div>

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