I have a problem doing facet search on a doc value field in a multi shard collection.
My Solr schema specifies fieldA as a docvalue type and I have created a two shard collection using Solr 4.4.0 (and the unreleased 4.5 branch).
When I do a facet search on fieldA with a "large" facet.limit then the query fails with the below exception
A "large" facet.limit seems to be when (10 + (facet.limit * 1,5)) * number of shards > rows matching my query
The exception does not occur when I run with a single shard collection.
It can easily be reproduced by indexing a single row and querying it, as the default facet.limit is 100.
The facet query received by Solr looks as follows:
One of the "internal query" send by Solr to its shard looks like
The exception thrown by Solr is as follows
My schema.xml contains the following lines (among others )