-
Type: Task
-
Resolution: Won't Do
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Server
-
Labels:None
We should allow queries such as
a: { $near: ..., $within: ... }
, but geonear predicates cannot be combined with other predicates in the same field, so we have to do for example,
$and: [ { a: { $near:... } }, { a: { $within: ... } } ]
. Also, ordering shouldn't matter.
In addition, for legacy formats for geonear queries, currently ordering matters and is incorrect in that for example,
a: { $eq: ..., $near: ..., $maxDistance: ... }
would error, but
a: { $near: ..., $eq: ..., $maxDistance: ... }
would ignore the $eq.
- documents
-
SERVER-19783 Query parser does not correctly handle geonear predicates with other predicates in the same field
- Closed