Slide 20
Slide 20 text
20
curl –XGET localhost:9200/pal-location-current/_search –d ‘
{
"query":{
"bool":{
"must":{
"match_all":{}
},
"filter":{
"geo_shape":{
"geometry":{
"shape":{
"type" : "polygon",
"coordinates" : [ [ [100.0, 0.0], [101.0, 0.0],
[101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ] ]
},
"relation":"intersects"
}
}
}
}}}’
Requires a geo_shape field
Geo-Shape Example