1
Hello, I am using Elasticsearch, and my query is not searching for the information I want.
{
"query":
{
"bool":
{
"must":
[
{
"range":
{
"date":
{
"gte": "2016-04-29 00:00:01",
"lte": "now"
}
}
}
]
}
}
}
I’ve tried some variations, like putting:
"lte": "2016-04-29 23:59:59"
But it doesn’t matter, the result is all possible dates, basically it’s like this query doesn’t even exist. Can someone help me?
You want to take data with date greater than 29/04/2016?
– Laerte
Yes, I want the dates between 2016-04-29 00:00:01 and 2016-04-29 23:59:59, ie I want the information registered today
– Jonathan