mirror of https://github.com/apache/lucene.git
SOLR-10035 Fix dataimport to use the new names.
This commit is contained in:
parent
d4ece81833
commit
51ff50d76d
|
@ -30,7 +30,7 @@ public final class SolrMetricInfo {
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of {@link 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 scope the scope of the metric (e.g. `/admin/ping`)
|
||||||
* @param name the name of the metric (e.g. `Requests`)
|
* @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.
|
* Returns the metric name defined by this object.
|
||||||
* For example, if the name is `Requests`, scope is `/admin/ping`,
|
* For example, if the name is `Requests`, scope is `/admin/ping`,
|
||||||
* and category is `QUERYHANDLERS`, then the metric name is
|
* and category is `QUERY`, then the metric name is
|
||||||
* `QUERYHANDLERS./admin/ping.Requests`.
|
* `QUERY./admin/ping.Requests`.
|
||||||
*
|
*
|
||||||
* @return the metric name defined by this object
|
* @return the metric name defined by this object
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,7 +22,7 @@ solrAdminApp.controller('DataImportController',
|
||||||
$scope.resetMenu("dataimport", Constants.IS_COLLECTION_PAGE);
|
$scope.resetMenu("dataimport", Constants.IS_COLLECTION_PAGE);
|
||||||
|
|
||||||
$scope.refresh = function () {
|
$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];
|
var mbeans = data['solr-mbeans'][1];
|
||||||
$scope.handlers = [];
|
$scope.handlers = [];
|
||||||
for (var key in mbeans) {
|
for (var key in mbeans) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ sammy.bind
|
||||||
$.ajax
|
$.ajax
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
url : core_basepath + '/admin/mbeans?cat=QUERYHANDLER&wt=json',
|
url : core_basepath + '/admin/mbeans?cat=QUERY&wt=json',
|
||||||
dataType : 'json',
|
dataType : 'json',
|
||||||
beforeSend : function( xhr, settings )
|
beforeSend : function( xhr, settings )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue