Docs: Update extendedstats-aggregation.asciidoc
code snippet should show ExtendedStats, not Stats Closes #10683
This commit is contained in:
parent
2579cc31b1
commit
86c2c202fe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue