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

Projecting {$meta: textScore} does not work in findAndModify

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.5.4
    • Component/s: Querying, Write Ops
    • Labels:
    • ALL

      db.test.findAndModify({
          query: { $text: { $search: "dog" } },
          update: { $inc: { count :1} },
          fields: { score: { $meta: "textScore" } }
      })
      2014-01-20T19:29:36.927-0500 findAndModifyFailed failed: {
        "errmsg": "exception: Unsupported projection option: $meta",
        "code": 13097,
        "ok": 0
      } at src/mongo/shell/collection.js:504
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            tyler@10gen.com Tyler Brock
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: