-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
-
ALL
If you have an index on {"my.field.name": 1}, then the document {"my.field.name": "a", "my": {"field": {"name": "b"}}, loc: [70, 40]} will produce an index key with value "b", as expected. However, if you have an index on {"loc": "2dsphere", "my.field.name": 1}, then it will index "a" (along with the encoded geo point). I'm not sure, but this may also hold true for other "special" index types that re-implement the logic to extract "normal" index keys for compound indexes.
- is duplicated by
-
SERVER-76875 Exclude fields containing dots from indexes
- Closed
- is related to
-
SERVER-61074 Investigate refactoring compound-indexing code to handle each index type in one place
- Backlog