I just updated the Wiki with the parameters for geodist()

http://wiki.apache.org/solr/SpatialSearch


On Thu, Sep 1, 2011 at 3:10 PM, Juan Grande <juan.gra...@gmail.com> wrote:
> 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 <billnb...@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
>> billnb...@gmail.com
>> cell 720-256-8076
>>
>



-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076

Reply via email to