I am trying to show only those documents where published_at date is less than now-7d/d.
#It seems ES is not working correctly here. I tried with an example of showing documents which are having published_at filed greater than current datetime. Even though the published_at field is not greater than now but i still see one document in results. I am not sure what is happening here.
Please also note that then i am using "2021-03-30 20:20:49" instead of "now" then it is working. Something is wrong with now.