I am trying to search two points in same query like below. but results returning empty.
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": [{
"geo_shape": {
"border": {
"shape": {
"type": "point",
"coordinates": [longitude1, latitude1]
},
"relation": "intersects"
}
}
}, {
"geo_shape": {
"border": {
"shape": {
"type": "point",
"coordinates": [longitude2, latitude2]
},
"relation": "intersects"
}
}
}
]
}
}
the query working for only one point at a time.
How can I search two points at a time ?