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%3Awar&version=2.2&start=0&rows=0&facet=true&facet.limit=-1&facet.field=artist replace localhost:8080 with your own :) On Thu, Aug 20, 2009 at 2:40 PM, Daniel Löfquist < daniel.lofqu...@it.cdon.c

Re: Group by field in Solr

2009-08-20 Thread Martijn v Groningen
Hi Daniel, I think you should take a look at https://issues.apache.org/jira/browse/SOLR-236. The functionality you are looking for is called field collapsing in Solr and does grouping by field. Currently this is not supported out of the box in Solr. The jira issue contains a patch you that you can

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 p