You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ar...@apache.org on 2016/08/12 14:12:35 UTC

lucene-solr:master: SOLR-8715: Admin UI - Fix schema special case

Repository: lucene-solr
Updated Branches:
  refs/heads/master f20e2f3a9 -> cea8a488f


SOLR-8715: Admin UI - Fix schema special case


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/cea8a488
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/cea8a488
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/cea8a488

Branch: refs/heads/master
Commit: cea8a488f0d48041abb4be0dbe29ab81f04522bf
Parents: f20e2f3
Author: Alexandre Rafalovitch <ar...@apache.org>
Authored: Sat Aug 13 00:10:35 2016 +1000
Committer: Alexandre Rafalovitch <ar...@apache.org>
Committed: Sat Aug 13 00:10:35 2016 +1000

----------------------------------------------------------------------
 solr/CHANGES.txt                                 | 2 ++
 solr/webapp/web/js/angular/controllers/schema.js | 4 ++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/cea8a488/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index ee5b4a7..5d4e2a6 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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/cea8a488/solr/webapp/web/js/angular/controllers/schema.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/controllers/schema.js b/solr/webapp/web/js/angular/controllers/schema.js
index 22f752e..ee23bd7 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});