From 12d826b264883a8f20cbbaac6d20d97b76626239 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Wed, 11 Apr 2012 17:58:31 +0000 Subject: [PATCH] SOLR-3326: Link search components to their MBean info git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1324895 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/handler/component/SearchComponent.java | 3 +-- solr/webapp/web/js/scripts/plugins.js | 15 ++++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java b/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java index 339c4a7c198..c7d35aa85b6 100644 --- a/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java +++ b/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java @@ -101,7 +101,6 @@ public abstract class SearchComponent implements SolrInfoMBean, NamedListInitial } public NamedList getStatistics() { - NamedList lst = new SimpleOrderedMap(); - return lst; + return null; } } diff --git a/solr/webapp/web/js/scripts/plugins.js b/solr/webapp/web/js/scripts/plugins.js index 5dedf60c457..41e33d3c56a 100644 --- a/solr/webapp/web/js/scripts/plugins.js +++ b/solr/webapp/web/js/scripts/plugins.js @@ -211,12 +211,17 @@ var render_plugin_data = function( plugin_data, plugin_sort, types ) if( 'description' === detail_key ) { - // For list of components + // Link component list to their MBeans page if(detail_value.match(/^Search using components: /)) { - detail_value = detail_value - .replace( /: /, ':"; + var idx = detail_value.indexOf(':'); + var url = '#/'+active_context.params.splat[0]+'/plugins/other?entry='; + var tmp = 'Search using components:"; + detail_value = tmp; } }