# Mapping conflict 7.1.0

**URL:** <https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260>\
**Category:** Elasticsearch\
**Created:** [May 29, 2019, 7:35am UTC](https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260 "2019-05-29T07:35:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shankhunt45\_3L\_T3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankhunt45_3l_t3/32/45812_2.png) [@Shankhunt45\_3L\_T3](https://discuss.elastic.co/u/Shankhunt45_3L_T3)\
**Post date:** [May 29, 2019, 7:35am UTC](https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260/1 "2019-05-29T07:35:47Z")

</div>

Hello everyone!

Firstly i'd like to thank you all (the community) for your support! You guys helped me solve almost all my problems and I am a little slow! so please bear with me.

I use the basic licence of elastic stack. And pretty much have learnt and understood many things that elastic has to offer!

but I have this issue that I cannot understand! i delete my indexes everyday to re-map my index pattern. I just can't find help for the new version! as \_template is obsolete. how do i tell elastic that my field phone.location is type geo\_point. (i am sorry! i am really a noob, as i said before i just got this far with all the community support)

I do this everyday and loose data. please help!

{in linux terminal}  
step 0) curl -X DELETE "localhost:9200/indexname-\*"

{in kibana console}  
step 1) POST indexname-\*/\_flush

step 2) PUT indexname-\*/\_mapping  
{  
"properties": {  
"phone.location": {  
"type": "geo\_point",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
}  
}

Now it works, for the day! next day new index comes and overwrites my type and (boom!) conflict! when i do not refresh list! (but i am still developing and i do not want to have this with a cron job! the dirty way!) there must be some way. i want to keep the data and understand the new process!

thank you very much in advance! I will really appreciate if you can also explain whats going on (like a step by step guide.) some one like me would also could be there.

- hank

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 10, 2019, 8:29am UTC](https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260/2 "2019-06-10T08:29:14Z")

</div>

The right way to apply the right mapping to an index at creation time is to use [an index template](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html).

> [@Shankhunt45\_3L\_T3](#):
>
> \_template is obsolete.

Where did you get this information from? Templates are not obsolete.

Perhaps you are confused that the 5.x syntax was deprecated in [#21009](https://github.com/elastic/elasticsearch/pull/21009) and you should now use `index_patterns` instead of `template` when defining the template?

---

<div class="post-metadata">

**Author:** ![Shankhunt45\_3L\_T3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shankhunt45_3l_t3/32/45812_2.png) [@Shankhunt45\_3L\_T3](https://discuss.elastic.co/u/Shankhunt45_3L_T3)\
**Post date:** [June 10, 2019, 9:49am UTC](https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260/3 "2019-06-10T09:49:03Z")

</div>

Hi, am sorry for the confusion. My bad.

And thank you for the clarification.  
Can you give me an idea on how to implement that? On kibana console or the terminal?

---

<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 8, 2019, 9:49am UTC](https://discuss.elastic.co/t/mapping-conflict-7-1-0/183260/4 "2019-07-08T09:49:11Z")

</div>

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