use of org.apache.solr.highlight.DefaultSolrHighlighter in project lucene-solr by apache.
the class HighlightComponent method inform.
@Override
public void inform(SolrCore core) {
List<PluginInfo> children = info.getChildren("highlighting");
if (children.isEmpty()) {
//TODO deprecated configuration remove later
PluginInfo pluginInfo = core.getSolrConfig().getPluginInfo(SolrHighlighter.class.getName());
if (pluginInfo != null) {
solrConfigHighlighter = core.createInitInstance(pluginInfo, SolrHighlighter.class, null, DefaultSolrHighlighter.class.getName());
} else {
DefaultSolrHighlighter defHighlighter = new DefaultSolrHighlighter(core);
defHighlighter.init(PluginInfo.EMPTY_INFO);
solrConfigHighlighter = defHighlighter;
}
} else {
solrConfigHighlighter = core.createInitInstance(children.get(0), SolrHighlighter.class, null, DefaultSolrHighlighter.class.getName());
}
}
Aggregations