SOLR-10087: StreamHandler should be able to use runtimeLib jars

This commit is contained in:
Kevin Risden 2017-02-01 15:50:04 -05:00
parent ff1a9e9235
commit db987b810c
2 changed files with 3 additions and 1 deletions

View File

@ -126,6 +126,8 @@ New Features
* SOLR-7955: Auto create .system collection on first request if it does not exist (noble)
* SOLR-10087: StreamHandler now supports registering custom streaming expressions from the blob store (Kevin Risden)
Bug Fixes
----------------------

View File

@ -178,7 +178,7 @@ public class StreamHandler extends RequestHandlerBase implements SolrCoreAware,
// This pulls all the overrides and additions from the config
List<PluginInfo> pluginInfos = core.getSolrConfig().getPluginInfos(Expressible.class.getName());
for (PluginInfo pluginInfo : pluginInfos) {
Class<? extends Expressible> clazz = core.getResourceLoader().findClass(pluginInfo.className, Expressible.class);
Class<? extends Expressible> clazz = core.getMemClassLoader().findClass(pluginInfo.className, Expressible.class);
streamFactory.withFunctionName(pluginInfo.name, clazz);
}