# Mapping Problem

**URL:** <https://discuss.elastic.co/t/mapping-problem/298521>\
**Category:** Elasticsearch\
**Created:** [March 1, 2022, 2:09pm UTC](https://discuss.elastic.co/t/mapping-problem/298521 "2022-03-01T14:09:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [March 1, 2022, 2:09pm UTC](https://discuss.elastic.co/t/mapping-problem/298521/1 "2022-03-01T14:09:59Z")

</div>

Hello dear friends, I have a big problem. The problem is ; I have an index that I created by reindexing from another index. The mapping of this index was fine before, but now there are corruptions, I have no idea why. Field names now repeat each other, starting with a lowercase letter. I performed a reindex operation from this index the other day, could that operation have caused this corruption?

**Error Example: (My index is mapping now just like this)**

```auto
"my_index_name" : {
    "mappings" : {
      "properties" : {
        "NameSurname" : {
          "type" : "text"
        },
        "CategoryId" : {
          "type" : "integer"
        },
        "ChangeRequestType" : {
          "type" : "integer"
        },
        "namesurname":{
          "type" : "text"
        }
       "categoryid" : {
          "type" : "integer"
        },
        "changerequesttype" : {
          "type" : "integer"
        }
     }
   }
}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 1, 2022, 10:23pm UTC](https://discuss.elastic.co/t/mapping-problem/298521/2 "2022-03-01T22:23:43Z")

</div>

You'd need to share more information for us to assist here.

> [@Busra\_Duygu](#):
>
> **Error Example: (My index is mapping now just like this)**

It's not clear what is the error there?  
What was the reindex that you ran?  
What was the previous mapping?  
What is the mapping that you expect?

---

<div class="post-metadata">

**Author:** ![Busra\_Duygu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/busra_duygu/32/90462_2.png) [@Busra\_Duygu](https://discuss.elastic.co/u/Busra_Duygu)\
**Post date:** [March 2, 2022, 6:20am UTC](https://discuss.elastic.co/t/mapping-problem/298521/3 "2022-03-02T06:20:20Z")

</div>

I guess it's not right to call it a mistake. The index is working now. I just saw that the fields are repeated in lower case in mapping. I thought this might be a problem and wanted to ask you guys. If we proceed from the example above, the first mapping of the index was like this:

```auto
"my_index_name" : {
    "mappings" : {
      "properties" : {
        "NameSurname" : {
          "type" : "text"
        },
        "CategoryId" : {
          "type" : "integer"
        },
        "ChangeRequestType" : {
          "type" : "integer"
        }
     }
   }

```

When I checked later, the mapping of my index was up. By the way, I have both reindexed and updated the documents. While doing the reindex process, I created a new index myself with a different mapping, then I reindexed using the source index and target index codes.I expected the mapping to look like its initial state, but I see that the fields are repeating. With field names in lower case.

---

<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 30, 2022, 6:20am UTC](https://discuss.elastic.co/t/mapping-problem/298521/4 "2022-03-30T06:20:58Z")

</div>

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