filters[index] = instanceFromClass( TokenFilterFactory.class, filterDef.factory(), "Token filter factory", mapOfParameters );
injectResourceLoader( filters[index], defaultResourceLoader, mapOfParameters );
}
for ( int index = 0; index < charFilters.length; index++ ) {
CharFilterDef charFilterDef = analyzerDef.charFilters()[index];
final Map<String, String> mapOfParameters = getMapOfParameters( charFilterDef.params(), luceneMatchVersion );
charFilters[index] = instanceFromClass( CharFilterFactory.class, charFilterDef.factory(), "Character filter factory", mapOfParameters );
injectResourceLoader( charFilters[index], defaultResourceLoader, mapOfParameters );
}
return new TokenizerChain( charFilters, tokenFactory, filters );
}