if (!methodField.getName().toLowerCase().equals("filter")) return false; builder.subAggregation(aggMaker.makeGroupAgg(filterFieldCandidate).subAggregation(agg)); return true; } origin: SonarSource/sonarqube I
方法名:subAggregation AggregationBuilder.subAggregation介绍 [英]Sets a raw (xcontent / json) sub addAggregation.[中]设置原始(xcontent/json)子addAggregation。 代码示例 代码示例来源:origin: NLPchina/elasticsearch-sql private boolean insertFilterIfExistsAfter(AggregationBuilder agg, List<Field> groupBy, ...
Java subAggregation方法属于org.elasticsearch.search.aggregations.AggregationBuilder类。使用说明:设置原始 (xcontent / json) 子 addAggregation。本文...
=this){returnrewritten.setMetaData(getMetaData()).subAggregations(rewrittenSubAggs);}elseif(rewrittenSubAggs!=factoriesBuilder){returnshallowCopy(rewrittenSubAggs,getMetaData());}else{return
Here are some more examples: 下面是一些更多的例子: multi_bucket["foo"]>single_bucket>multi_metric.avgwill go to theavgmetric in the"multi_metric"agg under the single bucket"single_bucket"within the"foo"bucket of the"multi_bucket"multi-bucket aggregation. ...
类名称:AggregationBuilder 方法名:subAggregations AggregationBuilder.subAggregations介绍 暂无 代码示例 代码示例来源:origin: org.elasticsearch/elasticsearch publicfinalAggregationBuilderrewrite(QueryRewriteContextcontext)throwsIOException{ AggregationBuilderrewritten=doRewrite(context); ...
"<aggregation_type>":{ <aggregation_body> } [,"meta":{[<meta_data_body>]}]? [,"aggregations":{[<sub_aggregation>]+}]? } [,"<aggregation_name_2>":{...}]* } Terms Aggregation 会根据字段的值动态构建buckets { "aggs":{
(String classifierName) {String probabilityField = classifierName +"_probability";returnAggregationBuilders.terms("by_class").field(classifierName).subAggregation(AggregationBuilders.avg("avg_probability").field(probabilityField)).subAggregation(AggregationBuilders.sum("sum_probability").field(probabilityField...
I'm using 1.0.0-RC1 and this doesn't appear to be working correctly for me for a metric sub-aggregation. If I use the following query: { "aggs": { "fieldValues": { "terms": { "field": "name.field", "order": { "totalAmount": "desc" } }, "aggs": { "totalAmount": { ...
Since there is a new Scripted metric aggregation (scripted_metric) in 1.4, it is possible to do a lot of amazing stuff. For example it is possible to implement Weighted Average aggregation, which we were missing before. Now we are really...