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


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

searching geo data with radius (tricky)

Started byMark <marek.slim@gmail.com>
First post2012-08-07 09:22 -0700
Last post2012-08-07 16:34 -0400
Articles 2 — 2 participants

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


Contents

  searching geo data with radius (tricky) Mark <marek.slim@gmail.com> - 2012-08-07 09:22 -0700
    Re: searching geo data with radius (tricky) Jeff Higgins <jeff@invalid.invalid> - 2012-08-07 16:34 -0400

#17293 — searching geo data with radius (tricky)

FromMark <marek.slim@gmail.com>
Date2012-08-07 09:22 -0700
Subjectsearching geo data with radius (tricky)
Message-ID<66f6a080-a4c4-446b-a60f-21f930da22b3@googlegroups.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 

[toc] | [next] | [standalone]


#17301

FromJeff Higgins <jeff@invalid.invalid>
Date2012-08-07 16:34 -0400
Message-ID<jvrttm$ank$1@dont-email.me>
In reply to#17293
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/>

[toc] | [prev] | [standalone]


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


csiph-web