RankSetting getDeclaredRankSetting(String field, RankSetting.Type type) {
        for (Iterator<RankSetting> i = declaredRankSettingIterator(); i.hasNext(); ) {
            RankSetting setting = i.next();
            if (setting.getFieldName().equals(field) && setting.getType() == type) {
                return setting;
            }
        }
        return null;
    }
Returns the a rank setting of a field, or null if there is no such rank setting in this profile

@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