Search in sources :

Example 1 with AnalyticsStats

use of org.apache.solr.analytics.request.AnalyticsStats in project lucene-solr by apache.

the class AnalyticsComponent method process.

@Override
public void process(ResponseBuilder rb) throws IOException {
    if (rb.req.getParams().getBool(AnalyticsParams.ANALYTICS, false)) {
        SolrParams params = rb.req.getParams();
        AnalyticsStats s = new AnalyticsStats(rb.req, rb.getResults().docSet, params, analyticsCollector);
        rb.rsp.add("stats", s.execute());
    }
}
Also used : AnalyticsStats(org.apache.solr.analytics.request.AnalyticsStats) SolrParams(org.apache.solr.common.params.SolrParams)

Aggregations

AnalyticsStats (org.apache.solr.analytics.request.AnalyticsStats)1 SolrParams (org.apache.solr.common.params.SolrParams)1