void addHits(Result result, boolean addOtherHits) {
            for (Hit hit : result.hits()) {
                add(hit, addOtherHits);
            }
        }
Groups hits according to document type.
For each group, the desired number of hits can be specified.

@author Tony Vaagenes
container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java