From 86c2c202fe558ec688e989e5507703a4b930ce35 Mon Sep 17 00:00:00 2001 From: Adam Mollenkopf Date: Mon, 20 Apr 2015 10:45:23 -0700 Subject: [PATCH] Docs: Update extendedstats-aggregation.asciidoc code snippet should show ExtendedStats, not Stats Closes #10683 --- .../aggregations/metrics/extendedstats-aggregation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java-api/aggregations/metrics/extendedstats-aggregation.asciidoc b/docs/java-api/aggregations/metrics/extendedstats-aggregation.asciidoc index f19b69ff89f..20d8db036d9 100644 --- a/docs/java-api/aggregations/metrics/extendedstats-aggregation.asciidoc +++ b/docs/java-api/aggregations/metrics/extendedstats-aggregation.asciidoc @@ -31,7 +31,7 @@ import org.elasticsearch.search.aggregations.metrics.stats.extended.ExtendedStat [source,java] -------------------------------------------------- // sr is here your SearchResponse object -Stats agg = sr.getAggregations().get("agg"); +ExtendedStats agg = sr.getAggregations().get("agg"); double min = agg.getMin(); double max = agg.getMax(); double avg = agg.getAvg();