parent
f8cf9f790b
commit
13f4b96ff2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue