SOLR-6499

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1624181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2014-09-11 02:08:13 +00:00
parent f1fb6ce6d3
commit f91b957e52
1 changed files with 6 additions and 1 deletions

View File

@ -142,7 +142,12 @@ public final class RequestHandlers {
void initHandlersFromConfig(SolrConfig config, List<PluginInfo> implicits){
// use link map so we iterate in the same order
Map<PluginInfo,SolrRequestHandler> handlers = new LinkedHashMap<>();
ArrayList<PluginInfo> infos = new ArrayList<>(implicits);
Map<String, PluginInfo> implicitInfoMap= new HashMap<>();
//deduping implicit and explicit requesthandlers
for (PluginInfo info : implicits) implicitInfoMap.put(info.name,info);
for (PluginInfo info : config.getPluginInfos(SolrRequestHandler.class.getName()))
if(implicitInfoMap.containsKey(info.name)) implicitInfoMap.remove(info.name);
ArrayList<PluginInfo> infos = new ArrayList<>(implicitInfoMap.values());
infos.addAll(config.getPluginInfos(SolrRequestHandler.class.getName()));
for (PluginInfo info : infos) {
try {