Created
July 3, 2014 14:46
-
-
Save dpb587/5278677adb3442cb5911 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/app/services/fields.js b/src/app/services/fields.js | |
index 3d01490..03138f6 100644 | |
--- a/src/app/services/fields.js | |
+++ b/src/app/services/fields.js | |
@@ -7,6 +7,7 @@ function (angular, _, config) { | |
'use strict'; | |
var module = angular.module('kibana.services'); | |
+ var patch0702 = { "mappings" : { "iis_tradingapi" : {} } }; | |
module.service('fields', function(dashboard, $rootScope, $http, esVersion, alertSrv, ejsResource) { | |
@@ -48,7 +49,7 @@ function (angular, _, config) { | |
}; | |
this.map = function(indices) { | |
- var request = ejs.client.get('/' + indices.join(',') + "/_mapping", | |
+ var request = ejs.client.get('/' + indices.filter(function (v) { return v != 'logstash-2014.07.02'; }).join(',') + "/_mapping", | |
undefined, undefined, function(data, status) { | |
if(status === 0) { | |
alertSrv.set('Error',"Could not contact Elasticsearch at "+ejs.config.server+ | |
@@ -62,6 +63,10 @@ function (angular, _, config) { | |
// Flatten the mapping of each index into dot notated keys. | |
return request.then(function(p) { | |
+ if (indices.indexOf('logstash-2014.07.02')) { | |
+ p['logstash-2014.07.02'] = patch0702; | |
+ } | |
+ | |
var mapping = {}; | |
return esVersion.gte('1.0.0.RC1').then(function(version) { | |
_.each(p, function(indexMap,index) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment