mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 03:25:15 +00:00
SOLR-13706: Config API output is broken for "highlight" component
This commit is contained in:
parent
26628b2717
commit
101fa624c3
@ -903,7 +903,11 @@ public class SolrConfig extends XmlConfigFile implements MapSerializable {
|
|||||||
tag = tag.replace("/", "");
|
tag = tag.replace("/", "");
|
||||||
if (plugin.options.contains(PluginOpts.REQUIRE_NAME)) {
|
if (plugin.options.contains(PluginOpts.REQUIRE_NAME)) {
|
||||||
LinkedHashMap items = new LinkedHashMap();
|
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());
|
for (Map.Entry e : overlay.getNamedPlugins(plugin.tag).entrySet()) items.put(e.getKey(), e.getValue());
|
||||||
result.put(tag, items);
|
result.put(tag, items);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user