A top_hits metric aggregator keeps track of the most relevant document being aggregated. This aggregator is intended to be used as a sub aggregator, 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 the collapse parameter instead. The top_hits aggregator can effectively be used to gr