This 
commit<https://github.com/elasticsearch/elasticsearch/commit/0c2d12bda34fbbe0ffd3cef5140f5d5a3919b080>adds
 support for indexing circles as geo_shapes, which is something I'd 
like to do (rather than approximating circles with polygons).

However, searching for intersection between a point and a circle (is this 
point in a circle) doesn't seem to work. Checking if a point is in a 
polygon can be done like this:

POST polygons/_search
 {
  "size" : 1000000,
  "query" : {
    "terms" : {
      "_id" : [ "GKN_32UnRiylOsYwyltX4g" ]
    }
  },
  "post_filter" : {
    "geo_shape" : {
      "vertices" : {
        "shape" : {
          "type" : "point",
          "coordinates" : [ 150, -30 ]
        },
        "relation" : "intersects"
      }
    }
  }
}


So that will check if the point (150, -30) is in the polygon with the id 
GKN.. But if the "polygon" is instead a circle, I don't get any hits 
(regardless of how big I make the circle). Since the search is for a 
geo_shape and got a geo_circle and a geo_polygon are geo_shapes, it seems 
like this should work.

What am I missing?

Thanks.

-- 
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/26c71961-0dde-4416-80ea-2687a85a5b19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to