Apache Lucene open-source search software
SOLR-10377: add debug.explain.structured to Admin UI
Munendra S Nb5a190b57666
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 477e7a7f49b..3fc94d837d6 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -89,8 +89,6 @@ New Features* SOLR-13553: Node level custom RequestHandlers (noble)--Improvements----------------------@@ -109,6 +107,8 @@ Other Changes* SOLR-12870: Use StandardCharsets instead of String values (Peter Somogyi via Munendra S N)+* SOLR-10377: Add `debug.explain.structured` to Admin UI. (David Smiley, Munendra S N)+================== 8.2.0 ==================Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.diff --git a/solr/webapp/web/js/angular/controllers/query.js b/solr/webapp/web/js/angular/controllers/query.jsindex 7267b000966..e8a38707a6a 100644--- a/solr/webapp/web/js/angular/controllers/query.js+++ b/solr/webapp/web/js/angular/controllers/query.js@@ -28,6 +28,7 @@ solrAdminApp.controller('QueryController',$scope.facet = {facet: "on"};$scope.spatial = {};$scope.spellcheck = {spellcheck:"on"};+ $scope.debugQuery = {debugQuery: "on"};$scope.qt = "/select";$scope.doQuery = function() {@@ -58,6 +59,7 @@ solrAdminApp.controller('QueryController',if ($scope.isFacet) copy(params, $scope.facet);if ($scope.isSpatial) copy(params, $scope.spatial);if ($scope.isSpellcheck) copy(params, $scope.spellcheck);+ if ($scope.isDebugQuery) copy(params, $scope.debugQuery);if ($scope.rawParams) {var rawParams = $scope.rawParams.split(/[&\n]/);diff --git a/solr/webapp/web/partials/query.html b/solr/webapp/web/partials/query.htmlindex 2918887cb62..3d329ea77e8 100644--- a/solr/webapp/web/partials/query.html+++ b/solr/webapp/web/partials/query.html@@ -92,9 +92,21 @@ limitations under the License.indent off</label>- <label for="debugQuery" class="checkbox" title="Show timing and diagnostics.">- <input type="checkbox" ng-model="query.debugQuery" name="debugQuery" id="debugQuery" title="Show timing and diagnostics." ng-true-value="'on'" ng-false-value="''">- debugQuery+ </div>+ </fieldset>++ <fieldset class="debugQuery optional">+ <legend>+ <label for="debugQuery" class="checkbox" title="Show timing and diagnostics.">+ <input type="checkbox" ng-model="isDebugQuery" name="debugQuery" id="debugQuery" value="true">+ debugQuery+ </label>+ </legend>+ <div class="fieldset" ng-show="isDebugQuery">++ <label for="debug_explain_structured" class="checkbox" title="Show Score explanations as nested structures.">+ <input type="checkbox" ng-model="debugQuery['debug.explain.structured']" name="debug.explain.structured" id="debug_explain_structured" value="true">+ debug.explain.structured</label></div>