final String[] ruleIds = args[0].split(",");
final File ruleFile = new File(args[1]);
final String languageCode = args[2];
final Language language = Language.getLanguageForShortName(languageCode);
final File indexDir = new File(args[3]);
final Searcher searcher = new Searcher(new SimpleFSDirectory(indexDir));
for (String ruleId : ruleIds) {
final long ruleStartTime = System.currentTimeMillis();
final PatternRule rule = searcher.getRuleById(ruleId, ruleFile);
final SearcherResult searcherResult = searcher.findRuleMatchesOnIndex(rule, language);
int i = 1;