Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Revise support for geoNear commands and $near query criteria #63

merged 3 commits into from Jul 13, 2012
Commits on Jul 12, 2012
  1. Revise support for geoNear commands and $near query criteria

    jmikola committed Jul 12, 2012
    Fixes #47. Previously, the near() builder method was used to support the geoNear command instead of $near query criteria. This was unintuitive, given how other geo methods like withinBox() operated.
    Instead, we add a new geoNear() builder method, which operates similarly to mapReduce() and switches the query into GEO_LOCATION mode. We also add methods to specify the distanceMultipler and maxDistance options.
    The near() builder method is repurposed to define $near query criteria for a field or expression.
  2. Fix event argument order when dispatching collectionPreNear

    Koji Iwazaki committed with jmikola Jul 12, 2012