Hi Team,
Could not able to index the nanaseconds?
PUT _template/datenanos
{
"index_patterns": ["datenanos"],
"mappings": {
"properties": {
"timestamp": {
"type": "date_nanos"
}
}
}
}
POST datenanos/_doc
{
"timestamp": 1706750418126671600
}
1706817016659228000
is Thursday, February 1, 2024 7:50:16.659 PM
in GMT
Error
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "failed to parse field [timestamp] of type [date_nanos] in document with id 'wR8KZ40BsAu17u8DfBwZ'. Preview of field's value: '1706750418126671600'"
}
],
"type" : "mapper_parsing_exception",
"reason" : "failed to parse field [timestamp] of type [date_nanos] in document with id 'wR8KZ40BsAu17u8DfBwZ'. Preview of field's value: '1706750418126671600'",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "date[+54086737-09-12T08:31:11.600Z] is after 2262-04-11T23:47:16.854775807 and cannot be stored in nanosecond resolution"
}
},
"status" : 400
}