@SuppressWarnings("deprecation")
    public static RewritesConfig createConfigObj(String configPath) {
        return new ConfigGetter<>(RewritesConfig.class).getConfig(configPath);
    }
Create config object based on config path

@param configPath path for the searcher config
container-search/src/test/java/com/yahoo/search/query/rewrite/test/QueryRewriteSearcherTestUtils.java