OpenSearch/x-pack/docs/en/rest-api
Zachary Tong d93b2a2e9a
[Rollup] Only allow aggregating on multiples of configured interval (#32052)
We need to limit the search request aggregations to whole multiples
of the configured interval for both histogram and date_histogram.
Otherwise, agg buckets won't overlap with the rolled up buckets
and the results will be incorrect.

For histogram, the validation is very simple: request must be >= the config,
and modulo evenly.

Dates are more tricky.
- If both request and config are fixed dates, we can convert to millis
and treat them just like the histo
- If both are calendar, we make sure the request is >= the config with
a static lookup map that ranks the calendar values relatively.  All
calendar units are "singles", so they are evenly divisible already
- We disallow any other combination (one fixed, one calendar, etc)
2018-08-29 17:10:00 -04:00
..
graph Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
ml [ML][DOCS] Refer to rules feature as custom rules (#32785) 2018-08-13 14:51:13 +01:00
rollup [Rollup] Only allow aggregating on multiples of configured interval (#32052) 2018-08-29 17:10:00 -04:00
security Token API supports the client_credentials grant (#33106) 2018-08-27 10:56:21 -06:00
watcher Watcher: Store username on watch execution (#31873) 2018-07-16 14:20:16 -05:00
defs.asciidoc [DOC] Splits role mapping APIs into separate pages (#32797) 2018-08-20 14:30:42 -07:00
ml-api.asciidoc [ML][DOCS] Add documentation for detector rules and filters (#32013) 2018-07-25 16:10:32 +01:00
rollup-api.asciidoc [Docs] Tweaks and fixes to rollup docs 2018-08-17 13:37:11 -04:00
security.asciidoc [DOCS] Add docs for Application Privileges (#32635) 2018-08-23 18:04:02 -07:00
watcher.asciidoc Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00