Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17414 > unrolled thread

searching geo data with radius (tricky)

Started by"Mark" <mark@1:261/38.remove-qhs-this>
First post2012-08-08 19:04 +0000
Last post2012-08-09 18:44 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  searching geo data with radius (tricky) "Mark" <mark@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
    Re: searching geo data with radius (tricky) "Jeff Higgins" <jeff.higgins@1:261/38.remove-k2r-this> - 2012-08-09 18:44 +0000

#17414 — searching geo data with radius (tricky)

From"Mark" <mark@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Subjectsearching geo data with radius (tricky)
Message-ID<5022AB83.56364.calajapr@time.synchro.net>
From: "Mark" <mark@1:261/38.remove-p82-this>

From: Mark <marek.slim@gmail.com>

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

--- 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

[toc] | [next] | [standalone]


#17472

From"Jeff Higgins" <jeff.higgins@1:261/38.remove-k2r-this>
Date2012-08-09 18:44 +0000
Message-ID<5023FE30.56421.calajapr@time.synchro.net>
In reply to#17414
  To: Mark
From: "Jeff Higgins" <jeff.higgins@1:261/38.remove-qhs-this>

  To: Mark
From: Jeff Higgins <jeff@invalid.invalid>

On 08/07/2012 12:22 PM, Mark wrote:
> 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

--- 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web