Apache Solr open-source search software
SOLR-8386: Add field option in the admin ui loads up even when no schemaFactory has been specified since the default is ManagedIndexSchemaFactory
Varun Thacker6981127be701
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex cd24abc6e3c..0c481ab4a07 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -114,6 +114,12 @@ New Features* SOLR-7669: Add SelectStream and Tuple Operations to the Streaming API and Streaming Expressions (Dennis Gove)+Bug Fixes+----------------------+* SOLR-8386: Add field option in the new admin UI schema page loads up even when no schemaFactory has been+ explicitly specified since the default is ManagedIndexSchemaFactory. (Erick Erickson, Upayavira, Varun Thacker)++Optimizations----------------------* SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not beendiff --git a/solr/webapp/web/js/angular/controllers/schema.js b/solr/webapp/web/js/angular/controllers/schema.jsindex 3f61ebeab05..22f752e7b75 100644--- a/solr/webapp/web/js/angular/controllers/schema.js+++ b/solr/webapp/web/js/angular/controllers/schema.js@@ -85,7 +85,7 @@ solrAdminApp.controller('SchemaController',});});Config.get({core: $routeParams.core}, function(data) {- $scope.isSchemaUpdatable = data.config.schemaFactory.class == "ManagedIndexSchemaFactory";+ $scope.isSchemaUpdatable = (data.config.hasOwnProperty('schemaFactory') == false || data.config.schemaFactory.class == "ManagedIndexSchemaFactory");});};$scope.refresh();