pub struct FacetExecutor { /* private fields */ }Expand description
Faceted search executor
Implementations§
Source§impl FacetExecutor
impl FacetExecutor
Sourcepub fn terms_aggregation(
&self,
values: &[Option<Value>],
max_buckets: usize,
) -> Vec<FacetBucket>
pub fn terms_aggregation( &self, values: &[Option<Value>], max_buckets: usize, ) -> Vec<FacetBucket>
Execute a terms aggregation
Sourcepub fn range_aggregation(
&self,
values: &[Option<f64>],
ranges: &[RangeBucket],
) -> Vec<FacetBucket>
pub fn range_aggregation( &self, values: &[Option<f64>], ranges: &[RangeBucket], ) -> Vec<FacetBucket>
Execute a range aggregation
Sourcepub fn numeric_aggregation(
&self,
values: &[Option<f64>],
agg_type: &AggregationType,
) -> f64
pub fn numeric_aggregation( &self, values: &[Option<f64>], agg_type: &AggregationType, ) -> f64
Execute a numeric aggregation (min, max, avg, sum)
Auto Trait Implementations§
impl Freeze for FacetExecutor
impl RefUnwindSafe for FacetExecutor
impl Send for FacetExecutor
impl Sync for FacetExecutor
impl Unpin for FacetExecutor
impl UnsafeUnpin for FacetExecutor
impl UnwindSafe for FacetExecutor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more