Elasticsearch query time range issue

Both I guess.