@Inject
public EnglishMorphologyAnalyzerProvider(Index index, @IndexSettings Settings indexSettings,
@Assisted String name, @Assisted Settings settings) {
super(index, indexSettings, name, settings);
try {
analyzer = new EnglishAnalyzer();
} catch (IOException ex) {
throw new ElasticsearchIllegalArgumentException("Unable to load English morphology analyzer", ex);
}
}