Reputation: 10923
We're running Apache Solr v3.1 and SolrJ is our client.
We're passing multiple Arbitrary Faceting Query (facet.query
) to get the
number of matching documents (the facet count) evaluated over the search
results in a single Solr query. My use case demands the actual matching
facet results/documents/fields also along with facet count.
My question is, is it possible to get facet query matching results along with facet count in a single Solr query call?
Upvotes: 0
Views: 1801
Reputation: 898
There is no support to get the facet rows count in solr 3.1 to my knowledge. The issue you are looking for exists as a feature request in Solr's JIRA:
https://issues.apache.org/jira/browse/SOLR-2242
There is a patch available, even specifically for Solr 3.1, but the issue still remains unresolved / uncommitted in 4.0. Maybe you could apply the patch yourself and see how it works out.
Upvotes: 2