How to perform a distance filter from a point to a polygon and specify that the distance should be less than or equal to a field from the index ?
Something like the example
GET /my_locations/_search
{
"query": {
"bool" : {
"must" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "a field from the index",
"pin.location" : {
"pin.location" : [-70, 40], [-90, 50] [...], [...]
}
}
}
}
}
}