-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Component/s: None
-
None
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 Ticket
Add 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 SERVER-42560. This ticket is just about making $meta able to parse the new metadata options and retrieve them from a Document. Until we support expressions in find() projection, the change will not actually have any "visible" effects.
- depends on
-
CSHARP-2752 Support all new $meta projections
- Closed
-
JAVA-3445 Support new $meta expressions in MongoDB 4.4
- Closed
-
CDRIVER-3372 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
CXX-1821 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
GODRIVER-1319 Allow ExpressionMeta to parse find() $meta options
- Closed
-
MOTOR-394 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
NODE-2174 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
PHPC-1447 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
PYTHON-1987 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
RUBY-1941 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed
-
SERVER-42418 Allow ExpressionMeta to parse find() $meta options
- Closed