Commit 710bb707 by Zachary Cava Committed by Torkel Ödegaard

[elasticsearch] Allow nested fields for annotation source (#10936)

parent 9c36ee22
......@@ -166,7 +166,7 @@ export class ElasticDatasource {
for (var i = 0; i < hits.length; i++) {
var source = hits[i]._source;
var time = source[timeField];
var time = getFieldFromSource(source, timeField);
if (typeof hits[i].fields !== 'undefined') {
var fields = hits[i].fields;
if (_.isString(fields[timeField]) || _.isNumber(fields[timeField])) {
......
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