private long decideDefaultMaxHits(Query query) {
        int maxHits;
        int maxOffset;
        if (query.properties().getBoolean(PAGINATION, true)) {
            maxHits = query.properties().getInteger(DefaultProperties.MAX_HITS);
            maxOffset = query.properties().getInteger(DefaultProperties.MAX_OFFSET);
        } else {
            maxHits = query.getHits();
            maxOffset = query.getOffset();
        }
        return maxHits + maxOffset;
    }
Look at a "reasonable" number of this by default. We don't want to set this too low because it impacts
the totalHits value returned.
<p>
If maxhits/offset is set high, use that as the default instead because it means somebody will want to be able to
get lots of hits. We could use hits+offset instead of maxhits+maxoffset but that would destroy pagination
with large values because totalHits is wrong.
<p>
If we ever get around to estimate totalhits we can rethink this.
container-search/src/main/java/com/yahoo/search/querytransform/SortingDegrader.java