Apache Lucene open-source search software
SOLR-10035 Fix dataimport to use the new names.
Andrzej Bialecki51ff50d76da2
diff --git a/solr/core/src/java/org/apache/solr/metrics/SolrMetricInfo.java b/solr/core/src/java/org/apache/solr/metrics/SolrMetricInfo.javaindex f0bc8a1efc4..4d093ebb43c 100644--- a/solr/core/src/java/org/apache/solr/metrics/SolrMetricInfo.java+++ b/solr/core/src/java/org/apache/solr/metrics/SolrMetricInfo.java@@ -30,7 +30,7 @@ public final class SolrMetricInfo {/*** Creates a new instance of {@link SolrMetricInfo}.*- * @param category the category of the metric (e.g. `QUERYHANDLERS`)+ * @param category the category of the metric (e.g. `QUERY`)* @param scope the scope of the metric (e.g. `/admin/ping`)* @param name the name of the metric (e.g. `Requests`)*/@@ -63,8 +63,8 @@ public final class SolrMetricInfo {/*** Returns the metric name defined by this object.* For example, if the name is `Requests`, scope is `/admin/ping`,- * and category is `QUERYHANDLERS`, then the metric name is- * `QUERYHANDLERS./admin/ping.Requests`.+ * and category is `QUERY`, then the metric name is+ * `QUERY./admin/ping.Requests`.** @return the metric name defined by this object*/diff --git a/solr/webapp/web/js/angular/controllers/dataimport.js b/solr/webapp/web/js/angular/controllers/dataimport.jsindex d8fbc4fea1c..3a263248331 100644--- a/solr/webapp/web/js/angular/controllers/dataimport.js+++ b/solr/webapp/web/js/angular/controllers/dataimport.js@@ -22,7 +22,7 @@ solrAdminApp.controller('DataImportController',$scope.resetMenu("dataimport", Constants.IS_COLLECTION_PAGE);$scope.refresh = function () {- Mbeans.info({core: $routeParams.core, cat: 'QUERYHANDLER'}, function (data) {+ Mbeans.info({core: $routeParams.core, cat: 'QUERY'}, function (data) {var mbeans = data['solr-mbeans'][1];$scope.handlers = [];for (var key in mbeans) {diff --git a/solr/webapp/web/js/scripts/dataimport.js b/solr/webapp/web/js/scripts/dataimport.jsindex ef2b896b4c0..20532c6c2c4 100644--- a/solr/webapp/web/js/scripts/dataimport.js+++ b/solr/webapp/web/js/scripts/dataimport.js@@ -28,7 +28,7 @@ sammy.bind$.ajax({- url : core_basepath + '/admin/mbeans?cat=QUERYHANDLER&wt=json',+ url : core_basepath + '/admin/mbeans?cat=QUERY&wt=json',dataType : 'json',beforeSend : function( xhr, settings ){