Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
-
None
-
None
-
Query
Description
$geoNear command requires that a collection have at most only one 2d index and/or only one 2dsphere
I guess that mongodb implicitly takes location field from index. The problem is that I have two location fields in collection (border and center point). Both fields have 2dsphere index. I want to query only center points with $geoNear, but this limitation does not allow me to do this.
Attachments
Issue Links
- duplicates
-
SERVER-31651 geoNear command and $geoNear agg stage should accept a "key" field
-
- Closed
-