public RankProfile resolve(SDDocumentType docType, String name) {
        RankProfile rankProfile = get(docType.getName(), name);
        if (rankProfile != null) return rankProfile;
        for (var parent : docType.getInheritedTypes()) {
            RankProfile parentProfile = resolve(parent, name);
            if (parentProfile != null) return parentProfile;
        }
        return get(globalRankProfilesKey, name);
    }
Returns a named rank profile, null if the search definition doesn't have one with the given name

@param schema the {@link Schema} that owns the rank profile
@param name the name of the rank profile
@return the RankProfile to return.
config-model/src/main/java/com/yahoo/schema/RankProfileRegistry.java