Browse Source

(fix)elasticsearch: IP addresses don't survive terms aggregation (#4393) (#6246)

Uros Meglic 9 years ago
parent
commit
e1739b6025
1 changed files with 3 additions and 0 deletions
  1. 3 0
      public/app/plugins/datasource/elasticsearch/elastic_response.js

+ 3 - 0
public/app/plugins/datasource/elasticsearch/elastic_response.js

@@ -171,6 +171,9 @@ function (_, queryDef) {
           } else {
             props["filter"] = nameIndex;
           }
+          if (bucket.key_as_string) {
+            props[aggDef.field] = bucket.key_as_string;
+          }
           this.processBuckets(bucket, target, seriesList, docs, props, depth+1);
         }
       }