Skip to content

Commit 9c42d1a

Browse files
committed
Fix
1 parent 063faff commit 9c42d1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/app/plugins/datasource/elasticsearch/datasource.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,9 @@ export class ElasticDatasource
774774
if (index && index.mappings) {
775775
const mappings = index.mappings;
776776

777-
const properties = mappings.properties;
777+
// LOGZ.IO GRAFANA CHANGE :: DEV-46404 - mappings not showing on query building
778+
// the format of the response depends on the esversion. we have v7 , seems to, which requires the _doc.
779+
const properties = mappings.properties || mappings._doc.properties;
778780
getFieldsRecursively(properties);
779781
}
780782
}

0 commit comments

Comments
 (0)