Date type mapping not recognised

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”
}

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

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