catch-up to percentile ranks agg change in es master

Original commit: elastic/x-pack-elasticsearch@b7428ab61f
This commit is contained in:
Costin Leau 2017-08-16 21:45:19 +03:00
parent 2c830bdff2
commit a4bd077913
1 changed files with 2 additions and 4 deletions

View File

@ -26,9 +26,7 @@ public class PercentileRanksAgg extends LeafAgg {
@Override
AggregationBuilder toBuilder() {
// TODO: look at keyed
return percentileRanks(id())
.field(fieldName())
.values(values.stream().mapToDouble(Double::doubleValue).toArray());
return percentileRanks(id(), values.stream().mapToDouble(Double::doubleValue).toArray())
.field(fieldName());
}
}