public void trace(String name) {
        if (hits().getQuery().getTrace().getLevel() < 5) {
            return;
        }
        StringBuilder hitBuffer = new StringBuilder(name);

        hitBuffer.append(" returns:\n");
        int counter = 0;

        for (Iterator<Hit> i = hits.unorderedIterator(); i.hasNext();) {
            Hit hit = i.next();

            if (hit.isMeta()) continue;

            hitBuffer.append("  #: ");
            hitBuffer.append(counter);

            traceExtraHitProperties(hitBuffer, hit);

            hitBuffer.append(", relevancy: ");
            hitBuffer.append(hit.getRelevance());

            hitBuffer.append(", source: ");
            hitBuffer.append(hit.getSource());

            hitBuffer.append(", uri: ");
            URI uri = hit.getId();

            if (uri != null) {
                hitBuffer.append(uri.getHost());
            } else {
                hitBuffer.append("(no uri)");
            }
            hitBuffer.append("\n");
            counter++;
        }
        if (counter == 0) {
            hitBuffer.append("(no hits)\n");
        }
        hits.getQuery().trace(hitBuffer.toString(), false, 5);
    }
Adds a context message to this query containing the entire content of this result,
if tracelevel is 5 or more.

@param name the name of the searcher instance returning this result
container-search/src/main/java/com/yahoo/search/Result.java