I am trying to do a DateRangeQuery with NEST. This is my code:
qbb.Bool( qbm => qbm.Must( qbms => qbms.DateRange(t => t.Field("DateField").GreaterThanOrEquals(DateMath.Now.Add(TimeSpan.FromDays(-8)).RoundTo(TimeUnit.Day)))))
I am trying to select everything dat has a date greater than or equal to 8 days ago. But this code returns a useless error. Does anyone have a tip?