public Ranking cloneFor(Query parent) {
        Ranking ranking = this.clone();
        ranking.setParent(parent);
        return ranking;
    }
Returns the query owning this, never null
container-search/src/main/java/com/yahoo/search/query/Ranking.java