Hi Yonik

I will give the latest 4.0 release a try. 

Thanks anyway.

Cheers
Ben
________________________________________
From: ysee...@gmail.com [ysee...@gmail.com] on behalf of Yonik Seeley 
[yo...@lucidworks.com]
Sent: Tuesday, November 13, 2012 2:04 PM
To: solr-user@lucene.apache.org
Subject: Re: sort by function error

I can't reproduce this with the example data.  Here's an example of
what I tried:

http://localhost:8983/solr/query?q=*:*&sort=geodist(store,-32.123323,108.123323)+asc&group.field=inStock&group=true

Perhaps this is an issue that's since been fixed.

-Yonik
http://lucidworks.com


On Mon, Nov 12, 2012 at 11:19 PM, Kuai, Ben <ben.k...@sensis.com.au> wrote:
> 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

Reply via email to