Files
elasticsearch-js/docs/reference/api/AggregationsRandomSamplerAggregation.md
2025-05-27 15:30:21 -05:00

670 B

Interface AggregationsRandomSamplerAggregation

Name Type Description
probability double The probability that a document will be included in the aggregated data. Must be greater than 0, less than 0.5, or exactly 1. The lower the probability, the fewer documents are matched.
seed integer The seed to generate the random sampling of documents. When a seed is provided, the random subset of documents is the same between calls.
shard_seed integer When combined with seed, setting shard_seed ensures 100% consistent sampling over shards where data is exactly the same.