pub struct TopHitsAggregation { /* private fields */ }
Expand description
A top_hits
metric aggregation keeps track of the most relevant document being aggregated.
This aggregation is intended to be used as a sub aggregation,
so that the top matching documents can be aggregated per bucket.
We do not recommend using
top_hits
as a top-level aggregation. If you want to group search hits, use thecollapse
parameter instead.
The top_hits
aggregation can effectively be used to group result sets
by certain fields via a bucket aggregation. One or more bucket aggregations
determines by which properties a result set get sliced into.
Implementations§
Source§impl TopHitsAggregation
impl TopHitsAggregation
Trait Implementations§
Source§impl Clone for TopHitsAggregation
impl Clone for TopHitsAggregation
Source§fn clone(&self) -> TopHitsAggregation
fn clone(&self) -> TopHitsAggregation
Returns a copy 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 TopHitsAggregation
impl Debug for TopHitsAggregation
Source§impl From<TopHitsAggregation> for Aggregation
impl From<TopHitsAggregation> for Aggregation
Source§fn from(q: TopHitsAggregation) -> Self
fn from(q: TopHitsAggregation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopHitsAggregation
impl PartialEq for TopHitsAggregation
Source§impl Serialize for TopHitsAggregation
impl Serialize for TopHitsAggregation
impl StructuralPartialEq for TopHitsAggregation
Auto Trait Implementations§
impl Freeze for TopHitsAggregation
impl RefUnwindSafe for TopHitsAggregation
impl Send for TopHitsAggregation
impl Sync for TopHitsAggregation
impl Unpin for TopHitsAggregation
impl UnwindSafe for TopHitsAggregation
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