# Mapper parsing exception - unsupported parameter

**URL:** https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914
**Category:** Elasticsearch
**Created:** [May 16, 2017, 11:11am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914 "2017-05-16T11:11:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sahar\_q](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@sahar\_q](https://discuss.elastic.co/u/sahar_q)
#### Post date: [May 16, 2017, 11:11am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914/1 "2017-05-16T11:11:27Z")

</div>

Hi guys, i've attempted to add this template and for some reason it says there are unsupported parameters, i failed to detect the error on my end and would like you to take a look :  
{  
"template": "arp-table",  
"settings": {  
"number\_of\_shards": 1  
},  
"mappings": {  
"properties": {  
"Host" : {"type": "ip"},  
"Interface" : {"type": "ip"},  
"Internet Address" : {"type": "ip"},  
"Physical Address" : {"type": "keyword"},  
"Type" : {"type": "keyword"}  
}  
}  
}

---

<div class="post-metadata">

### Author: ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)
#### Post date: [May 16, 2017, 11:18am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914/2 "2017-05-16T11:18:29Z")

</div>

you need to put your document type between the `mappings` and `properties` objects. So a correct template would look like this:

```auto
PUT _template/foo
{
  "template": "arp-table",
  "settings": {
    "number_of_shards": 1
  },
  "mappings": {
    "my_type": {
      "properties": {
        "Host": {
          "type": "ip"
        },
        "Interface": {
          "type": "ip"
        },
        "Internet Address": {
          "type": "ip"
        },
        "Physical Address": {
          "type": "keyword"
        },
        "Type": {
          "type": "keyword"
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

### Author: ![sahar\_q](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@sahar\_q](https://discuss.elastic.co/u/sahar_q)
#### Post date: [May 16, 2017, 11:26am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914/3 "2017-05-16T11:26:32Z")

</div>

do i have to assign a type?

---

<div class="post-metadata">

### Author: ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)
#### Post date: [May 16, 2017, 1:12pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914/4 "2017-05-16T13:12:01Z")

</div>

yes, you also need to assign a type to documents when you index them. See [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-index\_.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-index_.html)

---

<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: [June 13, 2017, 1:12pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-unsupported-parameter/85914/5 "2017-06-13T13:12:18Z")

</div>

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