use of org.apache.solr.analytics.statistics.StatsCollector in project lucene-solr by apache.
the class FacetingAccumulator method postProcess.
/**
* Processes the query and range facets.
* Must be called if range and/or query facets are supported.
*/
@Override
public void postProcess() throws IOException {
super.compute();
for (Map<String, StatsCollector[]> f : fieldFacetCollectors.values()) {
for (StatsCollector[] arr : f.values()) {
for (StatsCollector b : arr) {
b.compute();
}
}
}
basicsAndFieldFacetsComputed = true;
final Filter filter = docs.getTopFilter();
if (rangeFacets != null) {
processRangeFacets(filter);
}
if (queryFacets != null) {
processQueryFacets(filter);
}
}
Aggregations