Package org.elasticsearch.search.aggregations.metrics.valuecount

Examples of org.elasticsearch.search.aggregations.metrics.valuecount.InternalValueCount


          for (Terms.Bucket value : ((Terms) aggregation).getBuckets()) {
            FacetValue facetValue = new FacetValue(value.getKey(), value.getDocCount());
            stats.put(aggregation.getName(), facetValue);
          }
        } else if (aggregation instanceof InternalValueCount) {
          InternalValueCount count = (InternalValueCount) aggregation;
          FacetValue facetValue = new FacetValue(count.getName(), count.getValue());
          stats.put(count.getName(), facetValue);
        }
      }
    }
    return stats;
  }
View Full Code Here

TOP

Related Classes of org.elasticsearch.search.aggregations.metrics.valuecount.InternalValueCount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.