Commit 980b9b5c by Victor Azevedo Committed by Torkel Ödegaard

use fielddata_fields in elasticsearch 2.x queries

Resolves issue #8467
parent 896f849b
......@@ -118,8 +118,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