I have one index say "all_geo_docs" which contains all documents and all have a geo_shape field with type geo_shape and geo_point field with type geo_point.
Now I have one field named 'org_type' in all docs with value 'type_poly' or 'type_point'. If a value is 'type_poly' that means that doc is Polygon or else if the value is 'type_point' that means that doc is Point.
Now from the same index, I want to get all documents(with type geo_point) for which point of the doc is within 2-3 polygons(which exist in the same index with type geo_shape). I have name and id of that 2-3 polygons. How can I write geo_query for the same?
In short, I want to get all geo_point documents for which point lies within specific 2-3 polygons?
Thanks in advance.