Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
'gt' gives unexpected results. #43277
Elasticsearch version: 7.0.0
OS version (
Description of the problem including expected versus actual behavior:
Returns zero hits, but if i do change the range to "now-2w" it returns hits. this is quite strange! and the relation too is specified as 'eq' rather than 'gt' in above response.
it works well with 'gte' though.
Steps to reproduce:
I don't see any errors in elasticsearch logs. (Discover tab in Kibana shows proper results as expected)
This behaviour looks to be deliberate, although I will admit that I find it surprising too. The
Labelling this for team discussion in case my confusion here is misplaced.
Thanks for reporting @Sanjaygk. This is an actual bug that was introduced with the move to Java Time. The logic that we apply to exclude rounded values (