August 2019
Intermediate to advanced
560 pages
13h 41m
English
Similar to using the sampler aggregation to limit the sub-aggregation results, this restricts the number of the samples to have a common value on the specified field. It reduces the bias distribution of the sample pool:
"aggs": { "sampling": { "diversified_sampler": {"field":"family", "shard_size":150, "max_docs_per_value" : 10}, "aggs": {"significant_terms_category": {"significant_terms": {"field": "category"}}}}}
According to the result of sampler, there are 61 documents with International ...
Read now
Unlock full access