[SERVER-11017] Deprecate alternate syntax for $maxDistance with $near Created: 03/Oct/13  Updated: 10/Dec/14  Resolved: 03/Oct/13

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: hari.khalsa@10gen.com
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Deprecate with an error message that the alternate, undocumented $maxDistance syntax for $near.

Currently, the following syntax:

db.t.find( { loc : { $near : [56, 8, 10] } } )

is a synonym for this:

db.t.find( { loc : { $near : [56, 8], $maxDistance:10 } } )



 Comments   
Comment by Daniel Pasette (Inactive) [ 03/Oct/13 ]

can't remove as the current java driver depends on this syntax.

Comment by Robert Stam [ 03/Oct/13 ]

It's not crystal clear from the description which of the two alternatives you plan to deprecate.

I assume you plan to deprecate the first one?

Generated at Thu Feb 08 03:24:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.