Unable to execute geo_point request using geopolygon filter
Hi I am trying to execute a geo_point request in ElasticSearch using the geopoly filter query syntax . official document], but replay will not be returned.
Here are some details: I am using the river plugin to index data from MySQL to ES with a mapping definition (nested structure and coordinate.value is geo_point).
I can see the docs from the main plugin:
Json request:
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_polygon": {
"coordinate.value": {
"points": [
[
-180,
90
],
[
-180,
-90
],
[
180,
-90
],
[
-180,
90
]
]
}
}
}
}
}
}
Can anyone tell me what is the correct request method to get the geo_point? Thanks to
+3
source to share