# Date type mapping not recognised

**URL:** https://discuss.elastic.co/t/date-type-mapping-not-recognised/147335
**Category:** Elasticsearch
**Created:** [September 5, 2018, 8:15am UTC](https://discuss.elastic.co/t/date-type-mapping-not-recognised/147335 "2018-09-05T08:15:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nskalis](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nskalis](https://discuss.elastic.co/u/nskalis)
#### Post date: [September 5, 2018, 8:15am UTC](https://discuss.elastic.co/t/date-type-mapping-not-recognised/147335/1 "2018-09-05T08:15:49Z")

</div>

hi,

I have upgraded to the latest version of elasticsearch,  
when I use the following mapping

```
{
    "mappings": {

        "_default_": {
            "_all": { "enabled": false },
            "_source": { "enabled": true },
            "_routing": { "required": true },
            "dynamic": true,

            "properties": {
                "time_stamp": { "type": "date", "format": "epoch_second" },

```

In Kibana's console with the `GET _mapping` command I see that

```
"time_stamp": {
            "type": "long"
          }

```

Could you please advise what I am doing wrong, and the `time_stamp` field does not recognized as a `date` field ?

```
{
“version” : {
“number” : “6.4.0”,
“build_flavor” : “default”,
“build_type” : “rpm”,
“build_hash” : “595516e”,
“build_date” : “2018-08-17T23:18:47.308994Z”,
“build_snapshot” : false,
“lucene_version” : “7.4.0”,
“minimum_wire_compatibility_version” : “5.6.0”,
“minimum_index_compatibility_version” : “5.0.0”
},
“tagline” : “You Know, for Search”
}
```

---

<div class="post-metadata">

### Author: ![nskalis](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nskalis](https://discuss.elastic.co/u/nskalis)
#### Post date: [September 6, 2018, 5:54pm UTC](https://discuss.elastic.co/t/date-type-mapping-not-recognised/147335/2 "2018-09-06T17:54:55Z")

</div>

my mapping was not taken into consideration. my bad ..

---

<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: [October 4, 2018, 5:54pm UTC](https://discuss.elastic.co/t/date-type-mapping-not-recognised/147335/3 "2018-10-04T17:54:59Z")

</div>

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