[DRIVERS-740] Support new $meta expressions in MongoDB 4.4 Created: 03/Sep/19 Updated: 28/Oct/23 Resolved: 02/Apr/20 |
|
| Status: | Closed |
| Project: | Drivers |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Server Compat: | 4.3 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Driver Compliance: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Downstream Change Summary This ticket adds support for new options in the $meta expression. Currently the only documented option is "textScore." In 4.4 these will be the options: Note that the docs are incorrect even for 4.2 (agg) $meta. In 4.2 $meta supports "textScore", "randVal", "searchScore" and "searchHighlights." In 4.4 there will be no concept of "agg $meta" opposed to "find() $meta", but there will be a separate ticket about that. Description of Linked TicketAdd support for "recordId" "indexKey" and "sortKey" in ExpressionMeta. Like other meta types, the expression should returning "missing" if the associated metadata cannot be found on the Document. This ticket will also involve modifying Document and DocumentMetadataFields. The main purpose of this work is to make ExpressionMeta supercede find() $meta. Note that the work of figuring out how to pass metadata between the PlanStage and DocumentSource layer is tracked by |