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

XMLWordPrintableJSON

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

      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
              Reporter:
              Tyler Brock (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: