Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71729

Add support for geo queries to stitch support library matcher interface

    • 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

      cc ian.ward@mongodb.com 

            Assignee:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: