fixed typo

This commit is contained in:
Martijn van Groningen 2018-06-06 07:44:01 +02:00
parent 735d0e671a
commit e9bd92fc76
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A

View File

@ -113,7 +113,7 @@ public class PreBuiltAnalyzerProviderFactory extends PreConfiguredAnalysisCompon
public Collection<AnalyzerProvider<?>> values() {
return preBuiltAnalyzer.getCache().values().stream()
// Wrap the analyzer instance in a PreBuiltAnalyzerProvider, this is what PreBuiltAnalyzerProviderFactory#close expects
// (other caches are not directly caching analyzers, but analyzer provider instead.
// (other caches are not directly caching analyzers, but analyzer provider instead)
.map(analyzer -> new PreBuiltAnalyzerProvider(name, AnalyzerScope.INDICES, analyzer))
.collect(Collectors.toList());
}