Update Java documentation for 5.0

Fix after review
This commit is contained in:
David Pilato 2016-11-30 14:13:52 +01:00
parent f8cf9f790b
commit 13f4b96ff2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ Histogram agg = sr.getAggregations().get("agg");
// For each entry // For each entry
for (Histogram.Bucket entry : agg.getBuckets()) { for (Histogram.Bucket entry : agg.getBuckets()) {
Double key = (Double) entry.getKey(); // Key Number key = (Number) entry.getKey(); // Key
long docCount = entry.getDocCount(); // Doc count long docCount = entry.getDocCount(); // Doc count
logger.info("key [{}], doc_count [{}]", key, docCount); logger.info("key [{}], doc_count [{}]", key, docCount);