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

Allow covered index use for non-array fields in multi-key index

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: Index Maintenance
    • Labels:
      None
    • Query

      Please allow this scenario to work for an indexOnly query.

      doc: { _id: id, arr: [strings], i: integer}
      index: { arr: 1, i: -1, _id:1 }
      query: find({arr:val}, {_id:1}).sort({i:-1}).limit(...)
      

      This is for a "full-text" search style feature.

      Thanks, Chris

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            scriby Chris Scribner
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: