M18 Azure Advanced search not limiting records based on spatial location
Hi all, based on the test performed for advanced search, I noticed that the query didn't limited the records based on the bounds of the spatial filter added. It seems to be acting like a "or" logical condition instead of "and", as it was expected.
Environment and collections used.
- Query
{
"kind": "{{authority}}:{{schemaSource}}:master-data--Well:1.*.0",
"limit": 100,
"offset": 0,
"query": "*",
"data.source": "*TNO*",
"queryAsOwner": false,
"spatialFilter": {
"field": "SpatialLocation.Wgs84Coordinates",
"geometries": {
"topLeft": {
"longitude": 2.9493408203125,
"latitude": 50.859180945520826
},
"bottomRight": {
"longitude": 6.2580810546875,
"latitude": 54.75956761546834
}
}
}
}
- Response
"SpatialLocation.Wgs84Coordinates": {
"geometries": [
{
"coordinates": [
3.51906683,
55.68101428
],
"type": "point"
}
],
"type": "geometrycollection"
},
I wasn't expecting this record to be part of the filter as its latitude is not in the range 50.859180945520826 - 54.75956761546834.