# Mapper \[xxxx\] of different type, current\_type \[date\], merged\_type \[text\]

**URL:** <https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626>\
**Category:** Logstash\
**Created:** [November 28, 2018, 5:06pm UTC](https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626 "2018-11-28T17:06:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saad\_Rabhi](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@Saad\_Rabhi](https://discuss.elastic.co/u/Saad_Rabhi)\
**Post date:** [November 28, 2018, 5:06pm UTC](https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626/1 "2018-11-28T17:06:04Z")

</div>

Hi everybody,

I'm a newbie on ELK and for some unknown reasons, as it was working without any changes on my side in any configuration, I'm facing to following issue :

mapper [hits.data.billing\_address.postal\_code] of different type, current\_type 2018-11-28 17:09:11

My logstash config :

input {  
exec {  
command =\> "python dashboard-new.py"  
interval =\> 1799  
id =\> "getToken-getOrders-new"  
codec =\> "json"  
}  
}

filter {  
mutate {  
rename =\> { "[\_type]" =\> "type" }  
}  
json {  
source =\> "data"  
}  
}

output {  
stdout {  
id =\> "stdout"  
codec =\> rubydebug { metadata =\> true }  
}  
elasticsearch {  
id =\> "elasticsearch"  
hosts=\>"[http://localhost:9200](http://localhost:9200)"  
}  
}

The actual mapping  
GET logstash-2018.11.28/\_mapping

Output :  
{  
"logstash-2018.11.28" : {  
"mappings" : {  
"_default_" : {  
"dynamic\_templates" : [  
{  
"message\_field" : {  
"path\_match" : "message",  
"match\_mapping\_type" : "string",  
"mapping" : {  
"norms" : false,  
"type" : "text"  
}  
}  
},  
{  
"string\_fields" : {  
"match" : "\*",  
"match\_mapping\_type" : "string",  
"mapping" : {  
"fields" : {  
"keyword" : {  
"ignore\_above" : 256,  
"type" : "keyword"  
}  
},  
"norms" : false,  
"type" : "text"  
}  
}  
}  
],  
"properties" : {  
"@timestamp" : {  
"type" : "date"  
},  
"@version" : {  
"type" : "keyword"  
},  
"geoip" : {  
"dynamic" : "true",  
"properties" : {  
"ip" : {  
"type" : "ip"  
},  
"latitude" : {  
"type" : "half\_float"  
},  
"location" : {  
"type" : "geo\_point"  
},  
"longitude" : {  
"type" : "half\_float"  
}  
}  
}  
}  
}  
}  
}  
}

I read diferent articles that saying that's not possible to change mapping and I need to create a template that will be indexed.

Now, I'd like to understand why I'm facing to that issue, and now, I'd like to understand how to solve it in a quick way, as I spent lot of hours with no correct solution.

May I ask somebody to guide me on how to solve that issue ?

++

Saad.

---

<div class="post-metadata">

**Author:** ![Saad\_Rabhi](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@Saad\_Rabhi](https://discuss.elastic.co/u/Saad_Rabhi)\
**Post date:** [November 29, 2018, 10:45am UTC](https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626/2 "2018-11-29T10:45:58Z")

</div>

Any update ?

---

<div class="post-metadata">

**Author:** ![Saad\_Rabhi](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@Saad\_Rabhi](https://discuss.elastic.co/u/Saad_Rabhi)\
**Post date:** [November 30, 2018, 9:39am UTC](https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626/3 "2018-11-30T09:39:19Z")

</div>

I finally found how to manage that issue

---

<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:** [December 28, 2018, 9:39am UTC](https://discuss.elastic.co/t/mapper-xxxx-of-different-type-current-type-date-merged-type-text/158626/4 "2018-12-28T09:39:20Z")

</div>

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