searching geo data with radius (tricky)

M

Mark

From: Mark <[email protected]>

Hi,

I have schema for document:
<fieldType name="geohash" class="solr2155.solr.schema.GeoHashField" length="12"
/>
<field name="lat_lng" type="location" indexed="true" stored="true"/>
<field name="radius" type="int" indexed="true" stored="true"/>

Base on only coordinates (without given radius) I would like to find every
document that coordinate with radius from document contains given point.
Example parameter: 13.80,51.01
This query is quite tricky: normally radius is provided in query, here I would
like to use radius from document (different for every document).

I could find some examples with functions, but used as a sort parameter, not
condition parameter...

Can you help me with solving this problem ?

Thanks for help
Mark

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 
J

Jeff Higgins

To: Mark
From: Jeff Higgins <[email protected]>

Hi,

I have schema for document:
<fieldType name="geohash" class="solr2155.solr.schema.GeoHashField" length="12" />
<field name="lat_lng" type="location" indexed="true" stored="true"/>
<field name="radius" type="int" indexed="true" stored="true"/>

Base on only coordinates (without given radius) I would like to find every
document that coordinate with radius from document contains given point.
Example parameter: 13.80,51.01
This query is quite tricky: normally radius is provided in query, here I
would like to use radius from document (different for every document).
I could find some examples with functions, but used as a sort parameter, not condition parameter...

Can you help me with solving this problem ?

Thanks for help
Mark
Have you been unable to fetch an answer to your question from the solr-user
mailing list?
<http://mail-archives.apache.org/mod_mbox/lucene-solr-user/>

--- BBBS/Li6 v4.10 Dada-1
* Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top