Merge pull request #5621 from w33ble/index-has-time-field

Add indexPattern.hasTimeField
This commit is contained in:
Joe Fleming 2015-12-09 15:06:20 -07:00
commit 94b6abacae

View file

@ -185,6 +185,10 @@ define(function (require) {
}
};
self.hasTimeField = function () {
return !!(this.timeFieldName && this.fields.byName[this.timeFieldName]);
};
self.prepBody = function () {
var body = {};