Merge pull request #17217 from colings86/fix/percentilesKeyedDefaults

Fixes the defaults for `keyed` in the percentiles aggregations
This commit is contained in:
Colin Goodheart-Smithe 2016-03-21 12:30:02 +00:00
commit 1f52bc52aa
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class PercentileRanksAggregatorBuilder extends LeafOnly<ValuesSource.Nume
private PercentilesMethod method = PercentilesMethod.TDIGEST;
private int numberOfSignificantValueDigits = 3;
private double compression = 100.0;
private boolean keyed = false;
private boolean keyed = true;
public PercentileRanksAggregatorBuilder(String name) {
super(name, InternalTDigestPercentileRanks.TYPE, ValuesSourceType.NUMERIC, ValueType.NUMERIC);

View File

@ -48,7 +48,7 @@ public class PercentilesAggregatorBuilder extends LeafOnly<ValuesSource.Numeric,
private PercentilesMethod method = PercentilesMethod.TDIGEST;
private int numberOfSignificantValueDigits = 3;
private double compression = 100.0;
private boolean keyed = false;
private boolean keyed = true;
public PercentilesAggregatorBuilder(String name) {
super(name, InternalTDigestPercentiles.TYPE, ValuesSourceType.NUMERIC, ValueType.NUMERIC);