Struct elasticsearch_dsl::search::aggregations::metrics::TopHitsAggregation [−][src]
pub struct TopHitsAggregation { /* fields omitted */ }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_hitsas a top-level aggregation. If you want to group search hits, use thecollapseparameter 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
Indicates which source fields are returned for matching documents
The offset from the first result you want to fetch.
The maximum number of top matching hits to return per bucket.
By default the top three matching hits are returned.
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TopHitsAggregation
impl Send for TopHitsAggregation
impl Sync for TopHitsAggregation
impl Unpin for TopHitsAggregation
impl UnwindSafe for TopHitsAggregation
Blanket Implementations
Mutably borrows from an owned value. Read more