@Override
    public ResultNode getRank() {
        if (hits.isEmpty()) {
            return new FloatResultNode(0);
        }
        return new FloatResultNode(hits.get(0).getRank());
    }
Adds a hit to this aggregation result

@param h the hit
@return this object
searchlib/src/main/java/com/yahoo/searchlib/aggregation/HitsAggregationResult.java