Elastic Date Math Rounding

The date_histogram aggregation has a parameter called offset. This property can be used to change a weekly bucket to be Monday to Sunday (the default) to Sunday to Saturday.

I'm wondering if there's a simliar solution for changing the start of week used in the date math operations.

For example, using "now/w" (with today being January 29th which is a monday) as the start in a range query will get me all documents since January 29th at 12:00am.

What if I want to update things so that "now/w" would give me all documents since January 28th at 12am?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.