@Silviu, sorry I never got around to submitting a "complete example, including mapping, indexing and searching" and instead worked around it with polygons. If you have the energy it would be great to get that example submitted.
Cheers, Viktor On Friday, 11 July 2014 00:38:12 UTC+10, Jilles van Gurp wrote: > > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e0ae41fa-a84f-414b-818f-995531d2bf61%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
