Search from indexed geo-shape which are intersect with i given's latitude&longitude , but return no hit

1.this is my index
{
"settings":{
"index":{
"number_of_shards":9,
"number_of_replicas":3
}
},

"mappings": {
"wm_aor_area": {
"properties": {
"aor_id": {
"type": "integer"
},
"wm_aor_polygon": {
"type": "geo_shape"
}
}
}
}
}

2.insert a polygon into elasticesearch2.3
curl -XPUT test.es.data.sankuai.com:9200/infra/wm_aor_area/4 -d '{
"wm_aor_polygon":{
"type": "polygon",
"coordinates": [[[17.811456, -179.296880],[28.459032, -179.296880],[28.459032, -61.347656],[17.811456, -61.347656],[17.811456, -179.296880]]]
},
"aor_id":4
}'

3.search from indexed polygon

curl -XGET test.es.data.sankuai.com:9200/infra/wm_aor_area/_search -d '{
"query":{
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_shape": {
"wm_aor_polygon": {
"shape": {
"type": "point",
"coordinates" : [102.725419,25.086736]
},
"relation":"intersects"
}
}
}
}
}
}'

4.return

{"took":1,"timed_out":false,"_shards":{"total":2,"successful":2,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}

i make true this point is intersect with the polygon,but i get no hit.

elasticesearch2.3

thanks for any reply!

It does not look to me as if the points are intersecting at all. If putting this into geojson.io, one shape is a strip at the antarctic, where as the point is in China.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.