Search in sources :

Example 6 with StatsCollector

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);
    }
}
Also used : StatsCollector(org.apache.solr.analytics.statistics.StatsCollector) Filter(org.apache.solr.search.Filter)

Aggregations

StatsCollector (org.apache.solr.analytics.statistics.StatsCollector)6 SolrException (org.apache.solr.common.SolrException)1 Filter (org.apache.solr.search.Filter)1