-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Geo
-
Labels:None
-
Query Execution
currently our $near syntax : { loc :
{ $near : [0,0], $maxDistance : 3 }} forces us to add each $near parameter to the general parsing logic - should really be like $within:
find({ loc : { $near :
{ $center : [[0, 0], 3] }})
This will let us add $uniqueDocs more easily to $near : so:
find({ loc : { $near :
{ $center : [[0, 0], 3], $uniqueDocs : true }})