Apache Solr open-source search software
SOLR-16142: Fix Admin UI's spatial parameter generation. (#886)
Christine Poerschke0bd8c4d98358
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 1210d2dabef..3335128f7ea 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -93,6 +93,8 @@ Bug Fixes* SOLR-16241: Fix JettyConfig.builder(JettyConfig) to correctly copy all attributes (hossman)+* SOLR-16142: Fix Admin UI's spatial parameter generation. (Arsal Jalib, Christine Poerschke)+Other Changes---------------------* SOLR-15897: Remove <jmx/> from all unit test solrconfig.xml files. (Eric Pugh)diff --git a/solr/webapp/web/js/angular/controllers/query.js b/solr/webapp/web/js/angular/controllers/query.jsindex c3475ce0157..5e36cfb73bd 100644--- a/solr/webapp/web/js/angular/controllers/query.js+++ b/solr/webapp/web/js/angular/controllers/query.js@@ -142,7 +142,7 @@ solrAdminApp.controller('QueryController',purgeParams(params, ["uf", "pf2", "pf3", "ps2", "ps3", "boost", "stopwords", "lowercaseOperators"], $scope.val.defType !== "edismax");purgeParams(params, getDependentFields("hl"), $scope.val.hl !== true);purgeParams(params, getDependentFields("facet"), $scope.val.facet !== true);- purgeParams(params, getDependentFields("spatial"), $scope.val.spatial !== true);+ purgeParams(params, ["spatial", "pt", "sfield", "d"], $scope.val.spatial !== true);purgeParams(params, getDependentFields("spellcheck"), $scope.val.spellcheck !== true);var qt = $scope.qt ? $scope.qt : "/select";diff --git a/solr/webapp/web/partials/query.html b/solr/webapp/web/partials/query.htmlindex 4ca70f2b37d..f0544ca2a70 100644--- a/solr/webapp/web/partials/query.html+++ b/solr/webapp/web/partials/query.html@@ -287,13 +287,13 @@ limitations under the License.<div class="fieldset" ng-show="val['spatial']"><label for="pt">pt</label>- <input type="text" ng-model="val['spatial.pt']" name="pt" id="pt">+ <input type="text" ng-model="val['pt']" name="pt" id="pt"><label for="sfield">sfield</label>- <input type="text" ng-model="val['spatial.sfield']" name="sfield" id="sfield">+ <input type="text" ng-model="val['sfield']" name="sfield" id="sfield"><label for="d">d</label>- <input type="text" ng-model="val['spatial.d']" name="d" id="d">+ <input type="text" ng-model="val['d']" name="d" id="d"></div></fieldset>