SOLR-8386: Add field option in the admin ui loads up even when no schemaFactory has been specified since the default is ManagedIndexSchemaFactory

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1718849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Varun Thacker 2015-12-09 13:13:30 +00:00
parent a1605404b8
commit 6981127be7
2 changed files with 7 additions and 1 deletions

View File

@ -114,6 +114,12 @@ New Features
* SOLR-7669: Add SelectStream and Tuple Operations to the Streaming API and Streaming Expressions (Dennis Gove) * 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 Optimizations
---------------------- ----------------------
* SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not been * SOLR-7876: Speed up queries and operations that use many terms when timeAllowed has not been

View File

@ -85,7 +85,7 @@ solrAdminApp.controller('SchemaController',
}); });
}); });
Config.get({core: $routeParams.core}, function(data) { 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(); $scope.refresh();