added dashboard.current.index.warm_fields to allow disabling of pre-parsing the mapping.

This commit is contained in:
Rashid Khan
2013-12-04 09:48:31 -07:00
parent 0efdd461df
commit 1081de13c2
8 changed files with 21 additions and 60 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ function (angular, _, config) {
this.fullMapping = {};
$rootScope.$watch(function(){return dashboard.indices;},function(n) {
if(!_.isUndefined(n) && n.length) {
if(!_.isUndefined(n) && n.length && dashboard.current.index.warm_fields) {
// Only get the mapping for indices we don't know it for
var indices = _.difference(n,_.keys(self.fullMapping));
// Only get the mapping if there are new indices