Hi Yonik Thanks for the reply. My sample query,
q="cafe"&sort=geodist(geoLocation,-32.123323,108.123323)+asc&group.field=familyId <field name="geoLocation" type="latLon" indexed="true" stored="false" /> <field name="familyId" type="string" indexed="true" stored="false" /> as long as I remove the group field the query working. BTW, I just find out that the version of solr we are using is an old copy of 4.0 snapshot before the alpha release. Could that be the problem? we have some customized parsers so it will take quite some time to upgrade. Ben ________________________________________ From: ysee...@gmail.com [ysee...@gmail.com] on behalf of Yonik Seeley [yo...@lucidworks.com] Sent: Tuesday, November 13, 2012 6:46 AM To: solr-user@lucene.apache.org Subject: Re: sort by function error On Mon, Nov 12, 2012 at 5:24 AM, Kuai, Ben <ben.k...@sensis.com.au> wrote: > more information, problem only happends when I have both sort by function > and grouping in query. I haven't been able to duplicate this with a few ad-hoc queries. Could you give your complete request (or at least all of the relevant grouping and sorting parameters), as well as the field type you are grouping on? -Yonik http://lucidworks.com