lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tedsolr <tsm...@sciquest.com>
Subject Re: faceted query with stats not working in solrj
Date Tue, 19 Aug 2014 13:25:29 GMT
That's a good suggestion, I hadn't checked that log file. What I found that
works, is hitting these methods on the SolrQuery object:

query.setGetFieldStatistics(true);
query.setParam("stats.field", "MyStatsFieldName");
query.setParam("stats.facet", "MyFacetFieldName");

Now I see the stats in the QueryResponse.



--
View this message in context: http://lucene.472066.n3.nabble.com/faceted-query-with-stats-not-working-in-solrj-tp4153608p4153764.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message