Hi, I am new to GIS w/ ES. Below is my request/ response. I am puzzled why do i get a polygon returned when it does not intersect w/ envelope defined in request. What am i missing? Appreciate quick response. Thanks, Andy
*Request*: *_search* {"size": 51000,"query": { "geo_shape": { "POLYS": {"shape": {"type": "envelope", "coordinates": [*[-118.58, 35.32],[-118.68, 35.30]*]}, "relation": "intersects"}}}} *Response*: "took" : 1172, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 94420, "max_score" : 1.0, "hits" : [ { "_index" : "XXX", "_type" : "XXX_data", "_id" : "1234", "_score" : 1.0, "_source":{"POLYS":{"type":"Polygon","coordinates": *[[[-117.7656797176,35.2420721325],[-117.766565557,35.2429646794],[-117.7675000712,35.2429532681],[-117.7661768866,35.2415486409],[-117.7661640858,35.2415341862],[-117.765523769,35.2419167046],[-117.7656797176,35.2420721325]*]]}, "STATE": "XX", "ID": 1234 ,"COUNTY_NAME": "YY"}]} }, { "_index" : "XXX", "_type" : "XXX_data", "_id" : "1235", "_score" : 1.0, .... .... _mapping?pretty' { "XXX" : { "mappings" : { "XXX_data" : { "properties" : { "COUNTY_NAME" : { "type" : "string" }, "ID" : { "type" : "long" }, "POLYS" : { "type" : "geo_shape", "tree" : "quadtree", "tree_levels" : 26 }, "STATE" : { "type" : "string" } } } } } } -- 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/2d56bdd5-34a2-4066-a770-81dacb6be725%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.