Skip to content

Commit 08678ad

Browse files
author
admin
committed
修改实例错误
1 parent 56e39dc commit 08678ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aggregations/metrics-aggregations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import org.elasticsearch.search.aggregations.metrics.max.Max;
6262

6363
```
6464
// sr is here your SearchResponse object
65-
Min agg = sr.getAggregations().get("agg");
65+
Max agg = sr.getAggregations().get("agg");
6666
double value = agg.getValue();
6767
```
6868

0 commit comments

Comments
 (0)