lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tedsolr <tsm...@sciquest.com>
Subject faceted query with stats not working in solrj
Date Mon, 18 Aug 2014 18:47:03 GMT
Hi. I have a query that works just fine in the browser. It rolls up documents
by the facet field and gives me stats on the stats field:

http://localhost:8983/solr/corename/select?q=*:*&stats=on&stats.field=Spend&stats.facet=Supplier

Posting this works just fine. However I cannot get stats from SolrJ or the
solr admin console. From the admin console (on the Query tab) I see:
<str name="msg">can not use FieldCache on a field which is neither indexed
nor has doc values: Supplier?wt=xml</str>

Both Spend and Supplier are indexed. The error must be referring to
something else.

In Java, I use 
query.addStatsFieldFacets("Spend", "Supplier"); 
but the stats object comes back null.
response.getFieldStatsInfo() == null

Thanks so much for any suggestions.
using solr 4.9



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

Mime
View raw message