-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
QI 2023-05-15
Currently the "stitch support library" exposes an interface to the server matcher library; given an MQL expression and a BSON document, the matcher can return a true/false match result.
However, geo query operators are not supported with this library. Presumably this is because the query plan stage source used to evaluate those operators comes from an (already built) 2d/2dsphere index, and the matcher provided by the library is operating outside of the context of any indexes.
But, it would be useful to be able to use the matcher to evaluate geo query operators (geoWithin, geoIntersects, near) on a single document at a time without relying on the existence of an index, mainly to satisfy queries such as:
- Does the document's "loc" field lie within a radius of X from some point
- Does the document's "loc" field lie within some polygon