From 74586e286769f4e6f999394f6ec45c59dc0ee5ec Mon Sep 17 00:00:00 2001 From: Ryan Grimm Date: Sat, 18 Oct 2014 10:34:43 -0700 Subject: [PATCH] Docs: Added 'd' to the list of supported units. Day was missing from the list of supported units in the date math section. Closes #8151 --- docs/reference/mapping/date-format.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/mapping/date-format.asciidoc b/docs/reference/mapping/date-format.asciidoc index c2e4b6d8bbb..77df3d429dd 100644 --- a/docs/reference/mapping/date-format.asciidoc +++ b/docs/reference/mapping/date-format.asciidoc @@ -29,8 +29,8 @@ query/filter (mainly makes sense in `range` query/filter). The expression starts with an "anchor" date, which can be either `now` or a date string (in the applicable format) ending with `||`. It can then follow by a math expression, supporting `+`, `-` and `/` -(rounding). The units supported are `y` (year), `M` (month), `w` (week), `h` (hour), -`m` (minute), and `s` (second). +(rounding). The units supported are `y` (year), `M` (month), `w` (week), +`d` (day), `h` (hour), `m` (minute), and `s` (second). Here are some samples: `now+1h`, `now+1h+1m`, `now+1h/d`, `2012-01-01||+1M/d`.