lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tedsolr <>
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:


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:
Sent from the Solr - User mailing list archive at

View raw message