Hi Erick, Well, these records are trips, each trip has multiple variants (departuredates, number of days). Each variant has his own record. Grouping is used to show only 1 record/trip.
When you search in this minidatabase (with 3 records) without a fq, then you receive 1 facetcount (grouped by the tripcode) for the country 'MA'. But if you have specified in the searchfields to search for trips in the country 'MA' (just adding &facet.query={!tag=CC}CountryCode:MA), then i receive a count of 2 for this Country. This is the number of the records and not of the grouped items. The reason i use &facet.query={!tag=CC}CountryCode:MA is explained here: http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters http://wiki.apache.org/solr/SimpleFacetParameters#Tagging_and_excluding_Filters Maybe, the system doesn't know that each record in the same group has the same CountryCode. I think this is maybe the reason why i get not the expected results. It's difficult to put the Solr instance online, but here are the results as you asked: http://users.telenet.be/rgekiere/solr/ http://users.telenet.be/rgekiere/solr/ -- View this message in context: http://lucene.472066.n3.nabble.com/Facet-counts-incorrect-on-filtered-field-when-using-groups-tp3496683p3502145.html Sent from the Solr - User mailing list archive at Nabble.com.