Search in sources :

Example 1 with AnalysisPlugin

use of com.yelp.nrtsearch.server.plugins.AnalysisPlugin in project nrtsearch by Yelp.

the class AnalyzerCreator method initialize.

public static void initialize(LuceneServerConfiguration configuration, Iterable<Plugin> plugins) {
    instance = new AnalyzerCreator(configuration);
    for (Plugin plugin : plugins) {
        if (plugin instanceof AnalysisPlugin) {
            AnalysisPlugin analysisPlugin = (AnalysisPlugin) plugin;
            instance.register(analysisPlugin.getAnalyzers());
        }
    }
}
Also used : Plugin(com.yelp.nrtsearch.server.plugins.Plugin) AnalysisPlugin(com.yelp.nrtsearch.server.plugins.AnalysisPlugin) AnalysisPlugin(com.yelp.nrtsearch.server.plugins.AnalysisPlugin)

Aggregations

AnalysisPlugin (com.yelp.nrtsearch.server.plugins.AnalysisPlugin)1 Plugin (com.yelp.nrtsearch.server.plugins.Plugin)1