I am not able to find getDocCount() method in ValueCount aggregation response.
ValueCount agg = response.getAggregations().get("ValueCountAgg");
long value = agg.getValue();
I am not able to find getDocCount() method in ValueCount aggregation response.
ValueCount agg = response.getAggregations().get("ValueCountAgg");
long value = agg.getValue();
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.