mirror of https://github.com/apache/lucene.git
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:
parent
f1fb6ce6d3
commit
f91b957e52
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue