Merge branch 'patch-1' of https://github.com/goldeelox/grafana into goldeelox-patch-1

This commit is contained in:
Torkel Ödegaard 2017-05-25 20:34:38 +02:00
commit 68397d342b

View File

@ -119,8 +119,12 @@ function (queryDef) {
query.fields = ["*", "_source"];
}
query.script_fields = {},
query.docvalue_fields = [this.timeField];
query.script_fields = {};
if (this.esVersion < 5) {
query.fielddata_fields = [this.timeField];
} else {
query.docvalue_fields = [this.timeField];
}
return query;
};