Its been observed that lte and gte both take lower bound values. how do I make it to take upper bound for lte and lower bound for gte??
This is how my query looks
{
"from": 0,
"size": 40,
"query": {
"filtered": {
"filter": {
"bool": {
"should": [
{
"range": {
"CreatedOn": {
"lte": "201505",
"gte": "201404",
"format": "yyyyMM"
}
}
}
]
}
}
}
}
}
The above query does not return me valid documents such as "2015-05-06T12:55:34.44", "2015-05-26T14:42:24.963" etc. It only returns "2015-05-01T11:42:24.963" from lte 201505