public GroupingOperation setAccuracy(double accuracy) {
        if (accuracy > 1.0 || accuracy < 0.0) {
            throw new IllegalArgumentException("Illegal accuracy '" + accuracy + "'. Must be between 0 and 1.");
        }
        this.accuracy = accuracy;
        return this;
    }
Assigns an accuracy value for this. This is a number between 0 and 1 describing the accuracy of the result, which
again determines the speed of the grouping request. A low value will make sure the grouping operation runs fast,
at the sacrifice if a (possible) imprecise result.

@param accuracy the accuracy to assign to this
@return this, to allow chaining
@throws IllegalArgumentException if the accuracy is outside the allowed value range
container-search/src/main/java/com/yahoo/search/grouping/request/GroupingOperation.java