final String[] ruleIds = args[0].split(",");
final String languageCode = args[1];
final Language language = Language.getLanguageForShortName(languageCode);
final File indexDir = new File(args[2]);
final boolean limitSearch = args.length > 3 && "--no_limit".equals(args[3]);
final Searcher searcher = new Searcher(new SimpleFSDirectory(indexDir));
if (!limitSearch) {
searcher.setMaxHits(100_000);
}
searcher.limitSearch = limitSearch;
final ContextTools contextTools = getContextTools(140);