@Override
    public boolean isCached() {
        if (notCachedCount<1) return true;
        if (subgroupCount<1) return false; // No need to check below

        // Else check recursively
        for (Hit hit : hits) {
            if (hit instanceof HitGroup) {
                if (hit.isCached()) return true;
            }
        }
        return false;
    }
Returns true if all the hits recursively contained in this
is cached
container-search/src/main/java/com/yahoo/search/result/HitGroup.java