Hmmm, I'm not sure this is supported. Why can't you just use the "location" type
provided in the example schema?

Best
Erick

On Mon, Oct 24, 2011 at 9:39 PM, ☼ 林永忠 ☼ (Yung-chung Lin)
<henearkrx...@gmail.com> wrote:
> Hi,
>
> I've started to use Solr to build up a search service, but I have
> encountered a problem here.
>
> However, when I use this URL, it always returns "*sort param could not be
> parsed as a query, and is not a field that exists in the index: geodist()"*
> *
> *
> http://localhost:8080/solr/select/?indent=true&fl=name,coordinates&q=*:*&sfield=coordinates&pt=45.15,-93.85&sort=geodist()%20asc<http://antlion.skimbl.com:8080/skimbl-solr/select/?indent=true&fl=name,coordinates&q=*:*&sfield=coordinates&pt=45.15,-93.85&sort=geodist(45.15,-93.85)%20asc>
>
> It works only when I specify coordinates in geodist().
> http://localhost:8080/solr/select/?indent=true&fl=name,coordinates&q=*:*&sfield=coordinates&pt=45.15,-93.85&sort=geodist(45.15,-93.85)%20asc<http://antlion.skimbl.com:8080/skimbl-solr/select/?indent=true&fl=name,coordinates&q=*:*&sfield=coordinates&pt=45.15,-93.85&sort=geodist(45.15,-93.85)%20asc>
>
> And the returned documents don't seem to be ranked by distance according to
> the criteria.
>
> My lucene is 3.4. The field 'coordinates' is in geohash format.
>
> Can anyone here give me some pointers?
>
> Thank you very much.
>
> Yung-chung Lin
>

Reply via email to