public int getMaxHits() {
        return maxHits;
    }
Obtain the maximum number of hits to collect.

@return Max number of hits to collect.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/HitsAggregationResult.java