static boolean isSuccess(Result result) {
        if (result.hits().getErrorHit() == null) return true;
        for (Hit hit : result.hits()) {
            if (hit.isMeta()) continue;
            if ( ! hit.isFillable() || ! hit.getFilled().isEmpty()) return true;
        }
        return false;
    }
Some leftover static methods.

@author Steinar Knutsen
container-search/src/main/java/com/yahoo/search/handler/SearchResponse.java