I have a bit of code in my geogeometry project that converts circles to 
polygons with whatever number of segments you wish: 
https://github.com/jillesvangurp/geogeometry/blob/master/src/main/java/com/jillesvangurp/geo/GeoGeometry.java.
 
 A few dozen gives you a really nice approximation of a circle typically.

Look for the circle2polygon method. It's in Java but it's quite easy to 
convert it to other languages since it is a simple static method. Using 
that you should be able to use the geo_shape query to do intersects queries 
on es. Would actually be nice if they added support for circles using 
something like this. I guess the main issue is figuring out how many 
segments you need on the circle.

Jilles


On Thursday, July 10, 2014 10:51:03 AM UTC+2, Silviu Rosu wrote:
>
> I am having the same problem with the search all assets that have a circle 
> that intersects a point. Did somebody have a solution to this? 
>
>
>
> -- 
> View this message in context: 
> http://elasticsearch-users.115913.n3.nabble.com/Searching-for-geo-circles-as-geo-shapes-tp4053167p4059531.html
>  
> Sent from the ElasticSearch Users mailing list archive at Nabble.com. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7daed3d6-5562-4ba5-b741-4cd17d0c27ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to