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

Merged
merged 3 commits into from Jul 13, 2012

Conversation

Projects
None yet
1 participant
@jmikola
Member

jmikola commented Jul 12, 2012

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.

@jmikola jmikola referenced this pull request Jul 12, 2012

Closed

Fix Builder near() #53

jmikola and others added some commits Jul 12, 2012

Revise support for geoNear commands and $near query criteria
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.

jmikola added a commit that referenced this pull request Jul 13, 2012

Merge pull request #63 from doctrine/geo-near
Revise support for geoNear commands and $near query criteria

@jmikola jmikola merged commit 3994f6b into master Jul 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment