public RankSetting getRankSetting(String field, RankSetting.Type type) {
        RankSetting rankSetting = getDeclaredRankSetting(field, type);
        if (rankSetting != null) return rankSetting;

        return uniquelyInherited(p -> p.getRankSetting(field, type), "rank setting " + type + " on " + field).orElse(null);
    }
Returns a rank setting of field or index, or null if there is no such rank setting in this profile or one it
inherits

@param field the field whose settings to return
@param type  the type that the field is required to be
@return the rank setting found, or null
config-model/src/main/java/com/yahoo/schema/RankProfile.java