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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.1
    • Index Maintenance
    • None
    • Query

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: