You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2019/08/20 21:30:42 UTC
[lucene-solr] branch branch_8x updated: SOLR-13706: Config API
output is broken for "highlight" component
This is an automated email from the ASF dual-hosted git repository.
noble pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 9c5a66f SOLR-13706: Config API output is broken for "highlight" component
9c5a66f is described below
commit 9c5a66fa9f905069b2531a769e81a520e42625d9
Author: noble <no...@apache.org>
AuthorDate: Wed Aug 21 07:29:03 2019 +1000
SOLR-13706: Config API output is broken for "highlight" component
---
solr/core/src/java/org/apache/solr/core/SolrConfig.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
index 3aa5406..6b79a27 100644
--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java
+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java
@@ -903,7 +903,11 @@ public class SolrConfig extends XmlConfigFile implements MapSerializable {
tag = tag.replace("/", "");
if (plugin.options.contains(PluginOpts.REQUIRE_NAME)) {
LinkedHashMap items = new LinkedHashMap();
- for (PluginInfo info : infos) items.put(info.name, info);
+ for (PluginInfo info : infos) {
+ //TODO remove after fixing https://issues.apache.org/jira/browse/SOLR-13706
+ if (info.type.equals("searchComponent") && info.name.equals("highlight")) continue;
+ items.put(info.name, info);
+ }
for (Map.Entry e : overlay.getNamedPlugins(plugin.tag).entrySet()) items.put(e.getKey(), e.getValue());
result.put(tag, items);
} else {