Does it work in the non distributed case? Is the field you're grouping on stored? What is the type on the uniqueKey field? Is it stored and indexed?
I've had a problem with distributed not working when the uniqueKey field was indexed but not stored. Also, in distributed searches, the uniqueKey is used to retrieve documents from shards, so if were say, a date, that may be causing the issue. Cody -----Original Message----- From: Bryan Loofbourrow [mailto:bloofbour...@knowledgemosaic.com] Sent: Wednesday, June 20, 2012 1:54 PM To: solr-user@lucene.apache.org Subject: RE: Exception using distributed field-collapsing > Hi Bryan, > > What is the fieldtype of the groupField? You can only group by field > that is of type string as is described in the wiki: > http://wiki.apache.org/solr/FieldCollapsing#Request_Parameters > > When you group by another field type a http 400 should be returned > instead if this error. At least that what I'd expect. > > Martijn Martijn, The group-by field is a string. I have been unable to figure how a date comes into the picture at all, and have basically been wondering if there is some problem in the grouping code that misaligns the field values from different results in the group, so that it is not comparing like with like. Not a strong theory, just the only thing I can think of. -- Bryan