mingo
    Preparing search index...
    $maxN: AccumulatorOperator = ...

    Returns an aggregation of the maxmimum value n elements within a group.