OpenSearch/docs/java-api/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
..
children-aggregation.asciidoc updated Java API docs with the changes due to aggregator refactoring 2016-02-15 10:34:29 +00:00
datehistogram-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00
daterange-aggregation.asciidoc [doc] fix outdated java api examples 2015-06-16 09:45:07 +02:00
filter-aggregation.asciidoc updated Java API docs with the changes due to aggregator refactoring 2016-02-15 10:34:29 +00:00
filters-aggregation.asciidoc Update Java documentation for 5.0 2016-11-28 17:33:40 +01:00
geodistance-aggregation.asciidoc updated Java API docs with the changes due to aggregator refactoring 2016-02-15 10:34:29 +00:00
geohashgrid-aggregation.asciidoc [doc] fix outdated java api examples 2015-06-16 09:45:07 +02:00
global-aggregation.asciidoc Add java documentation for aggregations 2014-11-29 19:46:33 +01:00
histogram-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00
iprange-aggregation.asciidoc Add back support for `ip` range aggregations. #17859 2016-05-13 17:22:01 +02:00
missing-aggregation.asciidoc Add java documentation for aggregations 2014-11-29 19:46:33 +01:00
nested-aggregation.asciidoc updated Java API docs with the changes due to aggregator refactoring 2016-02-15 10:34:29 +00:00
range-aggregation.asciidoc [doc] fix outdated java api examples 2015-06-16 09:45:07 +02:00
reverse-nested-aggregation.asciidoc Update Java documentation for 5.0 2016-11-28 17:33:40 +01:00
significantterms-aggregation.asciidoc Add java documentation for aggregations 2014-11-29 19:46:33 +01:00
terms-aggregation.asciidoc Compound order for histogram aggregations. (#22343) 2017-05-11 18:06:26 +01:00