public boolean isRankedByRelevance() {
        return orderByIdx.isEmpty();
    }
This tells you if the children are ranked by the pure relevance or by a more complex expression.
That indicates if the rank score from the child can be used for ordering.

@return true if it ranked by pure relevance.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/Group.java