public RankProfile get(ImmutableSchema schema, String name) {
        var profile = get(schema.getName(), name);
        if (profile != null) return profile;
        if (schema.inherited().isPresent()) return get(schema.inherited().get(), name);
        return null;
    }
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