private static List<RuleBase> toList(SemanticRulesConfig config, Linguistics linguistics) {
        try {
            RuleImporter ruleImporter = new RuleImporter(config, linguistics);
            List<RuleBase> ruleBaseList = new java.util.ArrayList<>();
            for (SemanticRulesConfig.Rulebase ruleBaseConfig : config.rulebase()) {
                RuleBase ruleBase = ruleImporter.importConfig(ruleBaseConfig);
                if (ruleBaseConfig.isdefault())
                    ruleBase.setDefault(true);
                ruleBaseList.add(ruleBase);
            }
            return ruleBaseList;
        }
        catch (Exception e) {
            throw new ConfigurationException("Failed configuring semantic rules",e);
        }
    }
Creates a semantic searcher using the given default rule base
container-search/src/main/java/com/yahoo/prelude/semantics/SemanticSearcher.java