瀏覽代碼

"No limit" was not effective for ES terms aggregation

This may belong to #2827
Volker Fröhlich 10 年之前
父節點
當前提交
184307816f
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      public/app/plugins/datasource/elasticsearch/query_builder.js

+ 1 - 2
public/app/plugins/datasource/elasticsearch/query_builder.js

@@ -22,8 +22,7 @@ function (angular) {
       return queryNode;
     }
 
-    size = parseInt(aggDef.settings.size, 10);
-    if (size > 0) { queryNode.terms.size = size; }
+    queryNode.terms.size = parseInt(aggDef.settings.size, 10);
     if (aggDef.settings.orderBy !== void 0) {
       queryNode.terms.order = {};
       queryNode.terms.order[aggDef.settings.orderBy] = aggDef.settings.order;