<BUG>}for (AnalysisBinderProcessor processor : processors) {processor.processTokenizers(tokenizerBinder, tokenizersSettings);</BUG><CONTEXT>Class<? extends TokenizerFactory> type = tokenizerSettings.getAsClass("type", null, "org.elasticsearch.index.analysis.", "TokenizerFactory");if (type == null) {throw new IllegalArgumentException("Tokenizer [" + tokenizerName + "] must have a type associated with it");}tokenizerBinder.addBinding(tokenizerName).toProvider(FactoryProvider.newFactory(TokenizerFactoryFactory.class, type)).in(Scopes.SINGLETON);<extra_id_0>}</CONTEXT>
AnalysisBinderProcessor.TokenizersBindings tokenizersBindings = new AnalysisBinderProcessor.TokenizersBindings(tokenizerBinder, tokenizersSettings);processor.processTokenizers(tokenizersBindings);