public void setHits(int hits) {
        if (hits < 0)
            throw new IllegalArgumentException("'hits' must be a positive number, not " + hits);
        this.hits = hits;
    }
Sets the number of hits requested. If hits is less than 0, an
IllegalArgumentException is thrown. Default number of hits is 10.
container-search/src/main/java/com/yahoo/search/Query.java