-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Index Maintenance, Querying
-
Query Integration
-
ALL
-
As mentioned in SERVER-23533, the key generation code for 2dsphere indexes produces keys by taking the Cartesian product of all distinct values (after expanding arrays) for each field. This means a 2dsphere index requires that all combinations of individual values for each field are unique rather than only the combinations of individual values for each field that appear together as array elements.
Note: This issue was realized while discussing index key generation with eric.daniels@10gen.com and clarifying properties around multikey indexes.