OpenSearch/docs/java-rest/high-level/rollup
Zachary Tong 6ae6f57d39
[7.x Backport] Force selection of calendar or fixed intervals (#41906)
The date_histogram accepts an interval which can be either a calendar
interval (DST-aware, leap seconds, arbitrary length of months, etc) or
fixed interval (strict multiples of SI units). Unfortunately this is inferred
by first trying to parse as a calendar interval, then falling back to fixed
if that fails.

This leads to confusing arrangement where `1d` == calendar, but
`2d` == fixed.  And if you want a day of fixed time, you have to
specify `24h` (e.g. the next smallest unit).  This arrangement is very
error-prone for users.

This PR adds `calendar_interval` and `fixed_interval` parameters to any
code that uses intervals (date_histogram, rollup, composite, datafeed, etc).
Calendar only accepts calendar intervals, fixed accepts any combination of
units (meaning `1d` can be used to specify `24h` in fixed time), and both
are mutually exclusive.

The old interval behavior is deprecated and will throw a deprecation warning.
It is also mutually exclusive with the two new parameters. In the future the
old dual-purpose interval will be removed.

The change applies to both REST and java clients.
2019-05-20 12:07:29 -04:00
..
delete_job.asciidoc Add delete rollup job support to HL REST Client (#34066) 2018-10-16 09:02:29 -04:00
get_job.asciidoc HLRC: Add get rollup job (#33921) 2018-10-02 09:11:29 -04:00
get_rollup_caps.asciidoc Add GetRollupCaps API to high level rest client (#32880) 2018-10-18 17:12:38 -04:00
get_rollup_index_caps.asciidoc [HLRC] Add GetRollupIndexCaps API (#35102) 2018-11-12 15:05:03 -05:00
put_job.asciidoc [7.x Backport] Force selection of calendar or fixed intervals (#41906) 2019-05-20 12:07:29 -04:00
search.asciidoc HLRC: Add rollup search (#36334) 2018-12-07 14:39:58 -05:00
start_job.asciidoc Add start rollup job support to HL REST Client (#34623) 2018-10-29 09:28:11 +01:00
stop_job.asciidoc HLRC: Add parameters to stopRollupJob API (#35545) 2018-11-15 10:50:48 +01:00