}
LOG.info("Tokenizer: " + tokenizerClassName);
tokenizer = (Tokenizer) Class.forName(tokenizerClassName).newInstance();
} catch (Exception e) {
throw new ConfigurationException("Error initializing tokenizer!");
}
LOG.info("Loading postings index...");
postingsIndex = new IntPostingsForwardIndex(indexPath, fs);
LOG.info(" - Number of terms: " + readCollectionTermCount());
LOG.info("Done!");
try {
termidMap = new DefaultFrequencySortedDictionary(new Path(getIndexTermsData()),
new Path(getIndexTermIdsData()), new Path(getIndexTermIdMappingData()), fs);
} catch (Exception e) {
throw new ConfigurationException("Error initializing dictionary!");
}
try {
docvectorsIndex = new IntDocVectorsForwardIndex(indexPath, fs);
} catch (Exception e) {