@Override
    public void postMerge() {
        hits.sort((lhs, rhs) -> -Double.compare(lhs.getRank(), rhs.getRank()));
        if ((maxHits >= 0) && (hits.size() > maxHits)) {
            hits = hits.subList(0, maxHits);
        }
    }
Adds a hit to this aggregation result

@param h the hit
@return this object
searchlib/src/main/java/com/yahoo/searchlib/aggregation/HitsAggregationResult.java