Commit 0a1c2a70 by Victor Azevedo Committed by GitHub

use fielddata_fields in elasticsearch 2.x queries

Resolves issue #8467
parent d1d47b56
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment