Skip to content

Commit cb4d5f5

Browse files
gabipetrovaynik9000
authored andcommitted
Fixed calendar intervals documentation (#56666)
- the 1-letter intervals are not parseable (`m`, `h`, `d`, `w`, `M`, `q`, `y`) - fixed formatting broken by new lines
1 parent f3e9627 commit cb4d5f5

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

docs/reference/aggregations/bucket/datehistogram-aggregation.asciidoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,51 +52,50 @@ Calendar intervals can only be specified in "singular" quantities of the unit
5252

5353
The accepted units for calendar intervals are:
5454

55-
minute (`m`, `1m`) ::
56-
All minutes begin at 00 seconds.
55+
minute (`1m`) ::
5756

57+
All minutes begin at 00 seconds.
5858
One minute is the interval between 00 seconds of the first minute and 00
5959
seconds of the following minute in the specified timezone, compensating for any
6060
intervening leap seconds, so that the number of minutes and seconds past the
6161
hour is the same at the start and end.
6262

63-
hour (`h`, `1h`) ::
64-
All hours begin at 00 minutes and 00 seconds.
63+
hour (`1h`) ::
6564

65+
All hours begin at 00 minutes and 00 seconds.
6666
One hour (1h) is the interval between 00:00 minutes of the first hour and 00:00
6767
minutes of the following hour in the specified timezone, compensating for any
6868
intervening leap seconds, so that the number of minutes and seconds past the hour
6969
is the same at the start and end.
7070

71+
day (`1d`) ::
7172

72-
day (`d`, `1d`) ::
7373
All days begin at the earliest possible time, which is usually 00:00:00
7474
(midnight).
75-
7675
One day (1d) is the interval between the start of the day and the start of
7776
of the following day in the specified timezone, compensating for any intervening
7877
time changes.
7978

80-
week (`w`, `1w`) ::
79+
week (`1w`) ::
8180

8281
One week is the interval between the start day_of_week:hour:minute:second
8382
and the same day of the week and time of the following week in the specified
8483
timezone.
8584

86-
month (`M`, `1M`) ::
85+
month (`1M`) ::
8786

8887
One month is the interval between the start day of the month and time of
8988
day and the same day of the month and time of the following month in the specified
9089
timezone, so that the day of the month and time of day are the same at the start
9190
and end.
9291

93-
quarter (`q`, `1q`) ::
92+
quarter (`1q`) ::
9493

9594
One quarter (1q) is the interval between the start day of the month and
9695
time of day and the same day of the month and time of day three months later,
9796
so that the day of the month and time of day are the same at the start and end. +
9897

99-
year (`y`, `1y`) ::
98+
year (`1y`) ::
10099

101100
One year (1y) is the interval between the start day of the month and time of
102101
day and the same day of the month and time of day the following year in the

0 commit comments

Comments
 (0)