From a6ce37022e744f5ba535b1cb52c3661aa8cab687 Mon Sep 17 00:00:00 2001 From: Alexandre Rafalovitch Date: Sat, 13 Aug 2016 00:20:05 +1000 Subject: [PATCH] SOLR-8715: Admin UI - Fix schema special case --- solr/CHANGES.txt | 2 ++ solr/webapp/web/js/angular/controllers/schema.js | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 7a45d9b032f..b006da2b850 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -173,6 +173,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.js index 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});