}
private IndexerBase getIndexer(final String coreName, String dataType,
String sourceFile) throws UnsupportedCoreException {
if (SolrConstants.CORE_NAME_CHINESE.equalsIgnoreCase(coreName)) {
return new ChineseIndexer(dataType, sourceFile);
} else {
throw new UnsupportedCoreException(coreName);
}
}