OpenSearch/docs/reference/aggregations/bucket
qwerty4030 e7d352b489 Compound order for histogram aggregations. (#22343)
This commit adds support for histogram and date_histogram agg compound order by refactoring and reusing terms agg order code. The major change is that the Terms.Order and Histogram.Order classes have been replaced/refactored into a new class BucketOrder. This is a breaking change for the Java Transport API. For backward compatibility with previous ES versions the (date)histogram compound order will use the first order. Also the _term and _time aggregation order keys have been deprecated; replaced by _key.

Relates to #20003: now that all these aggregations use the same order code, it should be easier to move validation to parse time (as a follow up PR).

Relates to #14771: histogram and date_histogram aggregation order will now be validated at reduce time.

Closes #23613: if a single BucketOrder that is not a tie-breaker is added with the Java Transport API, it will be converted into a CompoundOrder with a tie-breaker.
2017-05-11 18:06:26 +01:00
..
adjacency-matrix-aggregation.asciidoc New AdjacencyMatrix aggregation 2017-01-20 15:49:31 +00:00
children-aggregation.asciidoc Only allow one type on 7.0 indices (#24317) 2017-04-27 08:43:20 +02:00
datehistogram-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00
daterange-aggregation.asciidoc Update aggs reference documentation for 'keyed' options (#23758) 2017-04-18 15:57:50 +02:00
diversified-sampler-aggregation.asciidoc Build fix for broken docs build 2017-01-31 10:27:06 +00:00
filter-aggregation.asciidoc Update filter-aggregation.asciidoc (#24138) 2017-04-17 18:46:13 -04:00
filters-aggregation.asciidoc Fix `other_bucket` on the `filters` agg to be enabled if a key is set. (#21994) 2016-12-09 09:48:48 +01:00
geodistance-aggregation.asciidoc Update aggs reference documentation for 'keyed' options (#23758) 2017-04-18 15:57:50 +02:00
geohashgrid-aggregation.asciidoc CONSOLEify geo aggregation docs 2017-03-30 21:28:52 -04:00
global-aggregation.asciidoc CONSOLE-ify global-aggregation.asciidoc 2017-01-20 14:36:51 -05:00
histogram-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00
iprange-aggregation.asciidoc Update aggs reference documentation for 'keyed' options (#23758) 2017-04-18 15:57:50 +02:00
missing-aggregation.asciidoc [DOCS] Restructure Aggs documentation 2015-05-01 16:04:55 -04:00
nested-aggregation.asciidoc Document 5.0 mapping changes. 2016-03-22 16:22:58 +01:00
range-aggregation.asciidoc cutover some docs to painless 2016-06-27 09:55:16 -04:00
reverse-nested-aggregation.asciidoc Docs: Add comma to reverse nested agg snippet 2017-03-17 14:07:18 +01:00
sampler-aggregation.asciidoc [DOCS] [TEST] enhancement - added CONSOLE scripts for sampler aggs (#22869) 2017-01-31 09:45:25 +00:00
significantterms-aggregation.asciidoc Update significantterms-aggregation.asciidoc 2016-11-14 09:40:04 +01:00
terms-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00