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

GeoSpatial queries should support maxDist parameter

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Usability
    • None
    • Environment:
      All

      It would be extremely useful to have a maxDist parameter for GeoSpatial queries. This would allow bounding box queries not to send results that are not of interest.

      Ideally, there would be three new parameters: maxDist (sets maximum distance along both axes), maxDistX and maxDistY (allowing the user to scale the queries if they are on a spherical surface, or if a non-square bounding box is what is desired.)

      The parameter(s) should be in the same units as the index.

      It is entirely fine if these use simplistic distance calcs (i.e., simply looking for values that are between (x-maxdistX and x+maxDistX). It might be simpler and clearer to just support minX/maxY and minY/maxY.

      Any of the above would be great and very useful for my target application, which is likely generate a lot of empty result sets.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            gwhite Greg White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: