protected SemanticSearcher createSearcher(String ruleBaseName,String automataFileName) {
        try {
            if (automataFileName != null)
                automataFileName = root + automataFileName;
            RuleBase ruleBase = RuleBase.createFromFile(root + ruleBaseName, automataFileName, new SimpleLinguistics());
            return new SemanticSearcher(ruleBase);
        } catch (Exception e) {
            throw new RuleBaseException("Initialization of rule base '" + ruleBaseName + "' failed",e);
        }
    }
DO NOT USE. Use RuleBaseTester instead

@author bratseth
container-search/src/test/java/com/yahoo/prelude/semantics/test/RuleBaseAbstractTestCase.java