# Templates in v8 and Beyond

**URL:** <https://discuss.elastic.co/t/templates-in-v8-and-beyond/228432>\
**Category:** Elasticsearch\
**Created:** [April 17, 2020, 3:21am UTC](https://discuss.elastic.co/t/templates-in-v8-and-beyond/228432 "2020-04-17T03:21:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [April 17, 2020, 3:21am UTC](https://discuss.elastic.co/t/templates-in-v8-and-beyond/228432/1 "2020-04-17T03:21:43Z")

</div>

So I've read through the notice about the removal of mapping types, but I can't wrap my head around it or find a straight forward example of how the new templates should look. So, given the below, what does it look like in 8+?

```auto
"agent": {
  "properties": {
    "ephemeral_id": {
      "type": "keyword"
    },
    "hostname": {
      "type": "keyword"
    },
    "id": {
      "type": "keyword"
    },
    "name": {
      "type": "keyword"
    },
    "type": {
      "type": "keyword"
    },
    "version": {
      "type": "keyword"
    },
    "ip":{
      "type": "ip"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 17, 2020, 3:33am UTC](https://discuss.elastic.co/t/templates-in-v8-and-beyond/228432/2 "2020-04-17T03:33:55Z")

</div>

Document types are being removed, not mapping types.

---

<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:** [May 15, 2020, 3:35am UTC](https://discuss.elastic.co/t/templates-in-v8-and-beyond/228432/3 "2020-05-15T03:35:02Z")

</div>

Closed on May 15, 2020, 3:35am UTC

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