# Template mapping dosen't work

**URL:** https://discuss.elastic.co/t/template-mapping-dosent-work/131130
**Category:** Logstash
**Created:** [May 9, 2018, 8:45am UTC](https://discuss.elastic.co/t/template-mapping-dosent-work/131130 "2018-05-09T08:45:16Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 9, 2018, 8:57pm UTC](https://discuss.elastic.co/t/template-mapping-dosent-work/131130/12 "2018-05-09T20:57:32Z")

</div>

Copying the solution from the [other thread](https://discuss.elastic.co/t/location-dosent-convert-to-geo-point/131199) to this one... "mapping" should be "mappings", "location " needs that space to be removed. "\_default" should be "\_default\_" (or "calls", since that is the document type).

This works.

```auto
PUT _template/nyc 
 {
    "order":0,
    "index_patterns":"nyc",
    "mappings":{
      "_default_":{
        "properties":{
          "location":{
            "type":"geo_point"
          }
        }
      }
    }
 }

```

---

_[View the full topic](https://discuss.elastic.co/t/template-mapping-dosent-work/131130)._
