Apache Lucene open-source search software
SOLR-7666 Re-fix some accidentally reverted changes
Upayavirad40aef4acaa8
diff --git a/solr/webapp/web/index.html b/solr/webapp/web/index.htmlindex e9c14cdfde3..df85ef4b66c 100644--- a/solr/webapp/web/index.html+++ b/solr/webapp/web/index.html@@ -177,7 +177,7 @@ limitations under the License.</div><div id="collection-menu" class="sub-menu" ng-show="currentCollection"><ul>- <li class="overview" ng-class="{active:page=='collection-overview'}"><a href="#/{{currentCore.name}}/collection-overview"><span>Overview</span></a></li>+ <li class="overview" ng-class="{active:page=='collection-overview'}"><a href="#/{{currentCollection.name}}/collection-overview"><span>Overview</span></a></li><li class="analysis" ng-class="{active:page=='analysis'}"><a href="#/{{currentCollection.name}}/analysis"><span>Analysis</span></a></li><li class="dataimport" ng-class="{active:page=='dataimport'}"><a href="#/{{currentCollection.name}}/dataimport"><span>Dataimport</span></a></li><li class="documents" ng-class="{active:page=='documents'}"><a href="#/{{currentCollection.name}}/documents"><span>Documents</span></a></li>diff --git a/solr/webapp/web/js/angular/controllers/core-overview.js b/solr/webapp/web/js/angular/controllers/core-overview.jsindex a2c2b5753f9..710e6f24269 100644--- a/solr/webapp/web/js/angular/controllers/core-overview.js+++ b/solr/webapp/web/js/angular/controllers/core-overview.js@@ -103,14 +103,13 @@ function($scope, $rootScope, $routeParams, Luke, CoreSystem, Update, Replication$scope.refreshPing = function() {Ping.status({core: $routeParams.core}, function(data) {- $scope.healthcheckStatus = data.status == "enabled";- }).$promise.catch(function(error) {- if (error.status == 404) {+ if (data.error) {$scope.healthcheckStatus = false;+ if (data.error.code == 503) {+ $scope.healthcheckMessage = 'Ping request handler is not configured with a healthcheck file.';+ }} else {- $scope.healthcheckStatus = false;- delete $rootScope.exception;- $scope.healthcheckMessage = 'Ping request handler is not configured with a healthcheck file.';+ $scope.healthcheckStatus = data.status == "enabled";}});};diff --git a/solr/webapp/web/js/angular/controllers/files.js b/solr/webapp/web/js/angular/controllers/files.jsindex a092e49b7e0..c4fb53ad40d 100644--- a/solr/webapp/web/js/angular/controllers/files.js+++ b/solr/webapp/web/js/angular/controllers/files.js@@ -38,7 +38,10 @@ solrAdminApp.controller('FilesController',}Files.list(params, function (data) {- for (var file in data.files) {+ var filenames = Object.keys(data.files);+ filenames.sort();+ for (var i in filenames) {+ var file = filenames[i];var filedata = data.files[file];var state = undefined;var children = undefined;diff --git a/solr/webapp/web/js/angular/controllers/query.js b/solr/webapp/web/js/angular/controllers/query.jsindex 9911d2bb5ad..bd6d7003139 100644--- a/solr/webapp/web/js/angular/controllers/query.js+++ b/solr/webapp/web/js/angular/controllers/query.js@@ -63,7 +63,9 @@ solrAdminApp.controller('QueryController',if ($scope.isSpellcheck) copy(params, $scope.spellcheck);if ($scope.rawParams) {- for (var param in $scope.rawParams.split(/[&\n]/)) {+ var rawParams = $scope.rawParams.split(/[&\n]/);+ for (var i in rawParams) {+ var param = rawParams[i];var parts = param.split("=");set(parts[0], parts[1]);}diff --git a/solr/webapp/web/js/angular/services.js b/solr/webapp/web/js/angular/services.jsindex 0db31d6dd2a..3d20dad8b9a 100644--- a/solr/webapp/web/js/angular/services.js+++ b/solr/webapp/web/js/angular/services.js@@ -178,8 +178,8 @@ solrAdminServices.factory('System',['$resource', function($resource) {return $resource('/solr/:core/admin/ping', {wt:'json', core: '@core', ts:Date.now(), _:Date.now()}, {"ping": {},- "status": {params:{action:"status"}}- });+ "status": {params:{action:"status"}, headers: {doNotIntercept: "true"}+ }});}]).factory('Mbeans',['$resource', function($resource) {@@ -232,7 +232,7 @@ solrAdminServices.factory('System',return "/solr/" + params.core + params.handler + "?" + qs.sort().join("&");}return resource;- }])+}]).factory('Segments',['$resource', function($resource) {return $resource('/solr/:core/admin/segments', {'wt':'json', core: '@core', _:Date.now()}, {diff --git a/solr/webapp/web/partials/query.html b/solr/webapp/web/partials/query.htmlindex 7105d5297ad..87f2f4e7d61 100644--- a/solr/webapp/web/partials/query.html+++ b/solr/webapp/web/partials/query.html@@ -251,13 +251,13 @@ limitations under the License.<div class="fieldset" ng-show="isFacet"><label for="facet_query">facet.query</label>- <textarea ng-model="facet.query" name="facet.query" id="facet_query"></textarea>+ <textarea ng-model="facet['facet.query']" name="facet.query" id="facet_query"></textarea><label for="facet_field">facet.field</label>- <input type="text" ng-model="facet.field" name="facet.field" id="facet_field">+ <input type="text" ng-model="facet['facet.field']" name="facet.field" id="facet_field"><label for="facet_prefix">facet.prefix</label>- <input type="text" ng-model="facet.prefix" name="facet.prefix" id="facet_prefix">+ <input type="text" ng-model="facet['facet.prefix']" name="facet.prefix" id="facet_prefix"></div></fieldset>@@ -293,47 +293,47 @@ limitations under the License.<div class="fieldset" ng-show="isSpellcheck"><label for="spellcheck_build" class="checkbox">- <input type="checkbox" ng-model="spellcheck.build" name="spellcheck.build" id="spellcheck_build" value="true">+ <input type="checkbox" ng-model="spellcheck['spellcheck.build']" name="spellcheck.build" id="spellcheck_build" value="true">spellcheck.build</label><label for="spellcheck_reload" class="checkbox">- <input type="checkbox" ng-model="spellcheck.reload" name="spellcheck.reload" id="spellcheck_reload" value="true">+ <input type="checkbox" ng-model="spellcheck['spellcheck.reload']" name="spellcheck.reload" id="spellcheck_reload" value="true">spellcheck.reload</label><label for="spellcheck_q">spellcheck.q</label>- <input type="text" ng-model="spellcheck.q" name="spellcheck.q" id="spellcheck_q">+ <input type="text" ng-model="spellcheck['spellcheck.q']" name="spellcheck.q" id="spellcheck_q"><label for="spellcheck_dictionary">spellcheck.dictionary</label>- <input type="text" ng-model="spellcheck.dictionary" name="spellcheck.dictionary" id="spellcheck_dictionary">+ <input type="text" ng-model="spellcheck['spellcheck.dictionary']" name="spellcheck.dictionary" id="spellcheck_dictionary"><label for="spellcheck_count">spellcheck.count</label>- <input type="text" ng-model="spellcheck.count" name="spellcheck.count" id="spellcheck_count">+ <input type="text" ng-model="spellcheck['spellcheck.count']" name="spellcheck.count" id="spellcheck_count"><label for="spellcheck_onlyMorePopular" class="checkbox">- <input type="checkbox" ng-model="spellcheck.onlyMorePopular" name="spellcheck.onlyMorePopular" id="spellcheck_onlyMorePopular" value="true">+ <input type="checkbox" ng-model="spellcheck['spellcheck.onlyMorePopular']" name="spellcheck.onlyMorePopular" id="spellcheck_onlyMorePopular" value="true">spellcheck.onlyMorePopular</label><label for="spellcheck_extendedResults" class="checkbox">- <input type="checkbox" ng-model="spellcheck.extendedResults" name="spellcheck.extendedResults" id="spellcheck_extendedResults" value="true">+ <input type="checkbox" ng-model="spellcheck['spellcheck.extendedResults']" name="spellcheck.extendedResults" id="spellcheck_extendedResults" value="true">spellcheck.extendedResults</label><label for="spellcheck_collate" class="checkbox">- <input type="checkbox" ng-model="spellcheck.collate" name="spellcheck.collate" id="spellcheck_collate" value="true">+ <input type="checkbox" ng-model="spellcheck['spellcheck.collate']" name="spellcheck.collate" id="spellcheck_collate" value="true">spellcheck.collate</label><label for="spellcheck_maxCollations">spellcheck.maxCollations</label>- <input type="text" ng-model="spellcheck.maxCollations" name="spellcheck.maxCollations" id="spellcheck_maxCollations">+ <input type="text" ng-model="spellcheck['spellcheck.maxCollations']" name="spellcheck.maxCollations" id="spellcheck_maxCollations"><label for="spellcheck_maxCollationTries">spellcheck.maxCollationTries</label>- <input type="text" ng-model="spellcheck.maxCollationTries" name="spellcheck.maxCollationTries" id="spellcheck_maxCollationTries">+ <input type="text" ng-model="spellcheck['spellcheck.maxCollationTries']" name="spellcheck.maxCollationTries" id="spellcheck_maxCollationTries"><label for="spellcheck_accuracy">spellcheck.accuracy</label>- <input type="text" ng-model="spellcheck.accuracy" name="spellcheck.accuracy" id="spellcheck_accuracy">+ <input type="text" ng-model="spellcheck['spellcheck.accuracy']" name="spellcheck.accuracy" id="spellcheck_accuracy"></div></fieldset>