Apache Lucene open-source search software
SOLR-8715: Admin UI - Fix schema special case
Alexandre Rafalovitchcea8a488f0d4
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex ee5b4a70f1a..5d4e2a64bf7 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -208,6 +208,8 @@ Bug Fixes* SOLR-9232: Admin UI now fully implements Swap Cores interface (Alexandre Rafalovitch)+* SOLR-8715: Admin UI's Schema screen now works for fields with stored=false and some content indexed (Alexandre Rafalovitch)+Optimizations----------------------diff --git a/solr/webapp/web/js/angular/controllers/schema.js b/solr/webapp/web/js/angular/controllers/schema.jsindex 22f752e7b75..ee23bd7931e 100644--- a/solr/webapp/web/js/angular/controllers/schema.js+++ b/solr/webapp/web/js/angular/controllers/schema.js@@ -477,6 +477,10 @@ var getFieldProperties = function(data, core, is, field) {var row = display.rows[i];row.cells = [];+ if (!row.flags) {+ continue; // Match the special case in the LukeRequestHandler+ }+for (var j in display.columns) {var flag = display.columns[j].key;row.cells.push({key: flag, value: row.flags.indexOf(flag)>=0});