lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Grande <juan.gra...@gmail.com>
Subject Re: geodist() parameters?
Date Thu, 01 Sep 2011 21:10:13 GMT
Hi Bill,

As far as I know, you can pass a completely different set of parameters to
each of the functions/filters. For example:

http://localhost:8983/solr/select?q={!func}add(geodist(field1, 10,
-10),geodist(field2, 20, -20))&fq={!geofilt sfield=field3 pt=30,-30
d=100}<http://localhost:8983/solr/select?q=%7B%21func%7Dadd%28geodist%28%29,geodist%28%29%29&fq=%7B%21geofilt%7D&pt=39.86347,-105.04888&d=100&sfield=store_lat_lon>

Let me know if this solved your problem!

*Juan*



On Wed, Aug 31, 2011 at 11:58 PM, William Bell <billnbell@gmail.com> wrote:

> I want to go a geodist() calculation on 2 different sfields. How would
> I do that?
>
>
> http://localhost:8983/solr/select?q={!func}add(geodist(),geodist())&fq={!geofilt}&pt=39.86347,-105.04888&d=100&sfield=store_lat_lon
>
> But I really want geodist() for one pt, and another geodist() for another
> pt.
>
> Can I do something like geodist(store_lat_lon,39.86347,-105.04888,100) ?
>
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message