Spatial Query with the posibility to select the spatial relation (within, intersects, contains, disjoint)
Hi,
Could we add the Geoshape query from eleastic to OSDU search capabilty where we could choose the spatial relation, because currently geo spatial queries (Geo Distance, Geo Bounding Box and Geo Polygon (Deprecated in 7.12.) are currently only with in relation.
The following is a complete list of spatial relation operators available when searching a geo field:
INTERSECTS - (default) Return all documents whose geo_shape or geo_point field intersects the query geometry. DISJOINT - Return all documents whose geo_shape or geo_point field has nothing in common with the query geometry. WITHIN - Return all documents whose geo_shape or geo_point field is within the query geometry. Line geometries are not supported. CONTAINS - Return all documents whose geo_shape or geo_point field contains the query geometry.
So for expample i would like for to search a Field from the spatial coordinate of a mouse click, as my point/or small polygon geometry not fully recover the geometry of the field, the query return 0 result. But if i use an elastic query directly with an intersect relation it s return the expected result.
Let me know if you need more info. Regards baptiste