public GroupingOperation setMax(int max) {
        this.max = max;
        return this;
    }
Sets the maximum number of groups to return for this operation.
container-search/src/main/java/com/yahoo/search/grouping/request/GroupingOperation.java