[SERVER-12414] Projecting {$meta: textScore} does not work in findAndModify Created: 21/Jan/14  Updated: 08/Dec/15  Resolved: 08/Dec/15

Status: Closed
Project: Core Server
Component/s: Querying, Write Ops
Affects Version/s: 2.5.4
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-16063 Rewrite findAndModify Closed
Related
Operating System: ALL
Participants:

 Description   

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



 Comments   
Comment by David Storch [ 08/Dec/15 ]

This was indeed fixed as part of the rewrite of findAndModify in SERVER-16063. Closing as a duplicate.

Comment by J Rassi [ 18/Feb/15 ]

I presume that this issue will be fixed by SERVER-16063. Leaving this ticket open until that ticket is resolved.

Generated at Thu Feb 08 03:28:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.