Commit 3095dabe by Andrew Richards Committed by Torkel Ödegaard

interpolate 'field' again in Elasticsearch terms queries (#10026)

* interpolate 'field' again in Elasticsearch terms queries

Fix for #8662 which was regressed in commit e4950c2d (the field 'field' was no longer interpolated)

* remove unnecessary check for existence of field 'field'
parent 1888708c
......@@ -395,6 +395,7 @@ export class ElasticDatasource {
}
if (query.find === 'terms') {
query.field = this.templateSrv.replace(query.field, {}, 'lucene');
query.query = this.templateSrv.replace(query.query || '*', {}, 'lucene');
return this.getTerms(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