Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75505

Difference in dotted path handling between index types

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: