You should look at CollapsinQParserPlugin. It's much faster compared to a Grouping query.
https://wiki.apache.org/solr/CollapsingQParserPlugin It has a limitation though, check the following JIRA if it might affect your use-case. https://issues.apache.org/jira/browse/SOLR-6143 -- View this message in context: http://lucene.472066.n3.nabble.com/Grouping-Performance-Optimation-tp4201886p4202032.html Sent from the Solr - User mailing list archive at Nabble.com.