Change suggestions for Sampler and Diversified sampler aggregations (#119355)

* Change suggestions for Sampler and Diversified sampler aggregations

* Change suggestions for Sampler and Diversified sampler aggregations

* Change suggestions for Sampler and Diversified sampler aggregations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
vladpro25 2021-12-13 15:25:09 +02:00 committed by GitHub
parent b58445da8e
commit e582c96f84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,8 +111,13 @@ const rules = {
filters: {},
},
diversified_sampler: {
shard_size: '',
field: '',
shard_size: 100,
field: '{field}',
max_docs_per_value: 1,
execution_hint: {
__template: 'global_ordinals',
__one_of: ['global_ordinals', 'map', 'bytes_hash'],
},
},
min: simple_metric,
max: simple_metric,
@ -446,13 +451,7 @@ const rules = {
},
sampler: {
__template: {},
field: '{field}',
script: {
// populated by a global rule
},
shard_size: 100,
max_docs_per_value: 3,
execution_hint: { __one_of: ['map', 'global_ordinals', 'bytes_hash'] },
},
children: {
__template: {