When I group or facet in solr based on a field, I only receive a count of documents that are in the search results. Is there a way to get a count of the documents that contain that value across the entire index? For example, with this data, I would like to search for "something" and get back only one item per unique gs field with a count of all the fields in the index. So id 2 would come up, as grouped by gs 50005, but the count would be 2 instead of 1.
<doc>
<field name="id">1</field>
<field name="gs">50005</field>
<field name="text">blah</field>
</doc>
<doc>
<field name="id">2</field>
<field name="gs">50005</field>
<field name="text">something else</field>
</doc>
<doc>
<field name="id">3</field>
<field name="gs">123</field>
<field name="text">another something value</field>
</doc>
<doc>
<field name="id">4</field>
<field name="gs">5423</field>
<field name="text">something entirely different</field>
</doc>