Group by field in Solr

2009-08-20 Thread Daniel Löfquist
Hello, I'm trying to accomplish something akin to GROUP BY in SQL but in Solr. I have an index full of songs (one song per document in Solr) by various artists and I would like to construct a search that gives me all of the artists back, one row per artist. The current search returns one row

Re: Group by field in Solr

2009-08-20 Thread Constantijn Visinescu
You'll want to use faceting, try to use a query like this http://localhost:8080/Solr/select/?q=artist%3Awarversion=2.2start=0rows=0facet=truefacet.limit=-1facet.field=artist replace localhost:8080 with your own :) On Thu, Aug 20, 2009 at 2:40 PM, Daniel Löfquist daniel.lofqu...@it.cdon.com