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:20:17 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 9ba422ac4 -> a6ce37022


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/a6ce3702
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a6ce3702
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a6ce3702

Branch: refs/heads/branch_6x
Commit: a6ce37022e744f5ba535b1cb52c3661aa8cab687
Parents: 9ba422a
Author: Alexandre Rafalovitch <ar...@apache.org>
Authored: Sat Aug 13 00:20:05 2016 +1000
Committer: Alexandre Rafalovitch <ar...@apache.org>
Committed: Sat Aug 13 00:20:05 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/a6ce3702/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 7a45d9b..b006da2 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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a6ce3702/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});