OpenSearch/x-pack/plugin
Nik Everett e58ad9fed3
Clean up how pipeline aggs check for multi-bucket (backport of #54161) (#54379)
Pipeline aggregations like `stats_bucket`, `sum_bucket`, and
`percentiles_bucket` only operate on buckets that have multiple buckets.
This adds support for those aggregations to `geo_distance`, `ip_range`,
`auto_date_histogram`, and `rare_terms`.

This all happened because we used a marker interface to mark compatible
aggs, `MultiBucketAggregationBuilder` and it was fairly easy to forget
to implement the interface.

This replaces the marker interface with an abstract method in
`AggregationBuilder`, `bucketCardinality` which makes you return `NONE`,
`ONE`, or `MANY`. The `bucket` aggregations can check for `MANY`. At
this point `ONE` and `NONE` amount to about the same thing, but I
suspect that'll be a useful distinction when validating bucket sorts.

Closes #53215
2020-03-30 10:44:55 -04:00
..
analytics Clean up how pipeline aggs check for multi-bucket (backport of #54161) (#54379) 2020-03-30 10:44:55 -04:00
async-search Clean up how pipeline aggs check for multi-bucket (backport of #54161) (#54379) 2020-03-30 10:44:55 -04:00
autoscaling Add assertion for get autoscaling decision API test 2020-03-29 14:36:38 -04:00
ccr Increase timeout on testUpdateAnalysisLeaderIndexSettings 2020-03-27 13:41:47 +01:00
core Clean up how pipeline aggs check for multi-bucket (backport of #54161) (#54379) 2020-03-30 10:44:55 -04:00
deprecation Add node local storage deprecation check (#54383) 2020-03-30 10:23:43 -04:00
enrich Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
eql EQL: Remove parser handling for functions (#54028) 2020-03-24 14:03:02 -06:00
frozen-indices Fix doc_stats and segment_stats of ReadOnlyEngine (#53345) 2020-03-10 21:51:33 -04:00
graph [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
identity-provider Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
ilm Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
logstash Revert "Introduce system index APIs for Kibana (#53035)" (#53992) 2020-03-23 10:29:35 -07:00
mapper-constant-keyword Introduce a `constant_keyword` field. (#49713) (#53024) 2020-03-03 16:01:47 +01:00
mapper-flattened Rename AtomicFieldData to LeafFieldData (#53554) 2020-03-17 12:30:12 +00:00
ml [7.x] Create an annotation when a model snapshot is stored (#53783) (#54405) 2020-03-30 15:17:08 +02:00
monitoring Scripting: stats per context in nodes stats (#54008) (#54357) 2020-03-27 12:26:00 -06:00
ql EQL: Fix custom scripting for functions (#53935) (#54114) 2020-03-24 20:54:19 +02:00
rollup Save a little space in agg tree (backport of #53730) (#54213) 2020-03-25 15:51:16 -04:00
search-business-rules Fix highlighter support in PinnedQuery and added test (#53716) (#53729) 2020-03-18 15:39:17 +00:00
security Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
spatial Add support for distance queries on shape queries (#53468) (#53796) 2020-03-19 15:32:09 +01:00
sql EQL: Fix custom scripting for functions (#53935) (#54114) 2020-03-24 20:54:19 +02:00
src/test [Docs] Add HLRC Async Search API documentation (#54353) 2020-03-30 15:37:22 +02:00
transform [Transform] fixing naming in HLRC and _cat to match API content (#54300) (#54408) 2020-03-30 08:57:02 -04:00
vectors Rename AtomicFieldData to LeafFieldData (#53554) 2020-03-17 12:30:12 +00:00
voting-only-node Single instance of the IndexNameExpressionResolver (#52604) 2020-02-21 07:50:02 -07:00
watcher Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
wildcard Wildcard field - add normalizer support (#53851) (#54109) 2020-03-24 17:37:47 +00:00
build.gradle [7.x] Add Watcher to available rest resources (#53620) (#53764) 2020-03-19 12:29:36 -05:00