# Unknown setting exception for "type"="date", "format": "year\_month\_day" in elastic search 5.5.0

**URL:** https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278
**Category:** Elasticsearch
**Created:** [July 15, 2017, 10:40pm UTC](https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278 "2017-07-15T22:40:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jayakrishnankk](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jayakrishnankk](https://discuss.elastic.co/u/jayakrishnankk)
#### Post date: [July 15, 2017, 10:40pm UTC](https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278/1 "2017-07-15T22:40:27Z")

</div>

I am new to elastic search, I was going through this video : [https://www.elastic.co/webinars/getting-started-elasticsearch](https://www.elastic.co/webinars/getting-started-elasticsearch).

Installed elasticsearch-5.5.0 (linux 64 bit) and kibana 5.5.0 and xpack.

When I create the index using the following command, I am getting an error.

```
PUT /dates
{
  "settings": {
    "index": {
      "number_of_shards": 2,
      "number_of_replicas": 0
    },
    "mappings": {
      "birth-date": {
        "properties": {
          "dob": {
            "type": "date",
            "format": "year_month_day"
          }
        }
      }
    }
  }
}

```

ERROR:

```
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "unknown setting [index.mappings.birth-date.properties.dob.format] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "unknown setting [index.mappings.birth-date.properties.dob.format] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
  },
  "status": 400
}

```

As mentioned in the response I tried searching in breaking changes, but unable to find the reason anywhere.

---

<div class="post-metadata">

### Author: ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)
#### Post date: [July 17, 2017, 10:56pm UTC](https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278/3 "2017-07-17T22:56:55Z")

</div>

I think your closing curly braces are misaligned. The key `mappings` should be at the same nesting as `settings`.

---

<div class="post-metadata">

### Author: ![jayakrishnankk](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jayakrishnankk](https://discuss.elastic.co/u/jayakrishnankk)
#### Post date: [July 31, 2017, 10:55pm UTC](https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278/4 "2017-07-31T22:55:06Z")

</div>

Thanks. This was the issue.  
I have updated the examples as per webinar in this gitlab example repo: [https://github.com/jayakrishnankk/examples/tree/master/getting-started](https://github.com/jayakrishnankk/examples/tree/master/getting-started) which is a clone of [https://github.com/elastic/examples](https://github.com/elastic/examples)

---

<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: [August 28, 2017, 10:56pm UTC](https://discuss.elastic.co/t/unknown-setting-exception-for-type-date-format-year-month-day-in-elastic-search-5-5-0/93278/5 "2017-08-28T22:56:06Z")

</div>

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