pub struct SamplerAggregation { /* private fields */ }
Expand description
A filtering aggregation used to limit any sub aggregations’ processing to a sample of the top-scoring documents.
Implementations§
Source§impl SamplerAggregation
impl SamplerAggregation
Sourcepub fn shard_size(self, shard_size: u64) -> Self
pub fn shard_size(self, shard_size: u64) -> Self
The shard_size parameter limits how many top-scoring documents are collected in the sample processed on each shard. The default value is 100.
Trait Implementations§
Source§impl Clone for SamplerAggregation
impl Clone for SamplerAggregation
Source§fn clone(&self) -> SamplerAggregation
fn clone(&self) -> SamplerAggregation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplerAggregation
impl Debug for SamplerAggregation
Source§impl From<SamplerAggregation> for Aggregation
impl From<SamplerAggregation> for Aggregation
Source§fn from(q: SamplerAggregation) -> Self
fn from(q: SamplerAggregation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SamplerAggregation
impl PartialEq for SamplerAggregation
Source§impl Serialize for SamplerAggregation
impl Serialize for SamplerAggregation
impl StructuralPartialEq for SamplerAggregation
Auto Trait Implementations§
impl Freeze for SamplerAggregation
impl RefUnwindSafe for SamplerAggregation
impl Send for SamplerAggregation
impl Sync for SamplerAggregation
impl Unpin for SamplerAggregation
impl UnwindSafe for SamplerAggregation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more