public static CompiledQueryProfileRegistry fromConfig(QueryProfilesConfig config) {
        return QueryProfileConfigurer.createFromConfig(config).compile();
    }
<p>Returns a query profile for the given request string, or null if a suitable one is not found.</p>

The request string must be a valid {@link com.yahoo.component.ComponentId} or null.<br>
If the string is null, the profile named "default" is returned, or null if that does not exists.

<p>
The version part (if any) is matched used the usual component version patching rules.
If the name part matches a query profile name perfectly, that profile is returned.
If not, and the name is a slash-separated path, the profile with the longest matching left sub-path
which has a type which allows path matching is used. If there is no such profile, null is returned.
container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfileRegistry.java