From 13f4b96ff28778748dfdbe5009408fe8c577c84b Mon Sep 17 00:00:00 2001 From: David Pilato Date: Wed, 30 Nov 2016 14:13:52 +0100 Subject: [PATCH] Update Java documentation for 5.0 Fix after review --- .../java-api/aggregations/bucket/histogram-aggregation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java-api/aggregations/bucket/histogram-aggregation.asciidoc b/docs/java-api/aggregations/bucket/histogram-aggregation.asciidoc index c1465c55af5..28e9cd3ecd0 100644 --- a/docs/java-api/aggregations/bucket/histogram-aggregation.asciidoc +++ b/docs/java-api/aggregations/bucket/histogram-aggregation.asciidoc @@ -36,7 +36,7 @@ Histogram agg = sr.getAggregations().get("agg"); // For each entry for (Histogram.Bucket entry : agg.getBuckets()) { - Double key = (Double) entry.getKey(); // Key + Number key = (Number) entry.getKey(); // Key long docCount = entry.getDocCount(); // Doc count logger.info("key [{}], doc_count [{}]", key, docCount);