302303304305306307308309310311312
StatisticalFacetBuilder stats = new StatisticalFacetBuilder(STATS_FACET_NAME); stats.global(false); stats.facetFilter(standardFilters(range, filter)); stats.field(field); srb.addFacet(stats); SearchResponse r; final SearchRequest request;
5051525354555657585960
StatisticalFacetBuilder builder = FacetBuilders.statisticalFacet(getName()); if (ArrayUtils.isNotEmpty(fields)) { builder.fields(fields); } else { builder.field(field); } return builder; } }