I am trying to fetch the following section of a document i have indexed through elasticsearch:
temporal: {
begin: "2016-11-30T00:00:00",
end: "2016-12-08T13:55:02"
},
The query that i am using on CURL as i am currently just testing the queries on localhost is the following one :
curl -XGET 'localhost:9201/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query": {
"range" : {
"timestamp" : {
"gte": "2015-01-01 00:00:00",
"lte": "now"
}
}
}
}
'
mapping
temporal: {
properties: {
begin: {
type: "date"
},
end: {
type: "date"
}
}
}
but the above mentioned query does not returns any successful hits although it should return at least the document mentioned above.