Hi,
I have an issue with date field.
With this queries:
DELETE ds3
PUT ds3
{
"mappings":{
"ds2":{
"properties":{
"producerID":{
"type":"keyword"
},
"timestamp":{
"type":"date"
},
"c1":{
"type":"double"
},
"c2":{
"type":"integer"
},
"c3":{
"type":"text"
}
}
}
}
}
POST ds3/ds2/ds2%23%230%23%23urn%3Adomain%3Asensors%3A1
{
"producerID":"urn:domain:sensors:1",
"timestamp":0,
"c1":0.3,
"c2":0,
"c3":"test0"
}
POST ds3/ds2/ds2%23%4607182418800017408%23%23urn%3Adomain%3Asensors%3A1
{
"producerID":"urn:domain:sensors:1",
"timestamp":1000,
"c1":10.3,
"c2":20,
"c3":"test10"
}
POST ds3/ds2/_search
{
"size": 1,
"sort" : [
{ "timestamp" : {"order" : "asc"}}
]
}
I expect the sort of the values done on timestamp to return the timestamp 0. But it return the timestamp 1000.
I'm using ElasticSearch 6.3.0
Do you know why ?
Thanks