<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:22:15 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DRIVERS-740] Support new $meta expressions in MongoDB 4.4</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-740</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    This ticket adds support for new options in the $meta expression. Currently the only documented option is &quot;textScore.&quot; In 4.4 these will be the options:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/0e6b9119f4d3a0fae681ed28220bc55ed1469f81/src/mongo/db/pipeline/expression.cpp#L2528-L2536&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/0e6b9119f4d3a0fae681ed28220bc55ed1469f81/src/mongo/db/pipeline/expression.cpp#L2528-L2536&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note that the docs are incorrect even for 4.2 (agg) $meta. In 4.2 $meta supports &quot;textScore&quot;, &quot;randVal&quot;, &quot;searchScore&quot; and &quot;searchHighlights.&quot;&lt;/p&gt;

&lt;p&gt;In 4.4 there will be no concept of &quot;agg $meta&quot; opposed to &quot;find() $meta&quot;, but there will be a separate ticket about that.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    Add support for &quot;recordId&quot; &quot;indexKey&quot; and &quot;sortKey&quot; in ExpressionMeta.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/19c0b59c3a5d6e5d2d7177cf4e9c83713c93cd68/src/mongo/db/pipeline/expression.cpp#L2576-L2577&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Like other meta types&lt;/a&gt;, the expression should returning &quot;missing&quot; if the associated metadata cannot be found on the Document.&lt;/p&gt;

&lt;p&gt;This ticket will also involve modifying &lt;tt&gt;Document&lt;/tt&gt; and &lt;tt&gt;DocumentMetadataFields&lt;/tt&gt;. The main purpose of this work is to make ExpressionMeta supercede find() $meta.&lt;/p&gt;

&lt;p&gt;Note that the work of figuring out how to pass metadata between the PlanStage and DocumentSource layer is tracked by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42560&quot; title=&quot;Handle passing of metadata between PlanStage and DocumentSource layers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42560&quot;&gt;&lt;del&gt;SERVER-42560&lt;/del&gt;&lt;/a&gt;. 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 &quot;visible&quot; effects.&lt;/p&gt;

</description>
                <environment></environment>
        <key id="915117">DRIVERS-740</key>
            <summary>Support new $meta expressions in MongoDB 4.4</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Sep 2019 06:07:23 +0000</created>
                <updated>Sat, 28 Oct 2023 10:45:09 +0000</updated>
                            <resolved>Thu, 2 Apr 2020 14:09:32 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="938588">CSHARP-2752</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938586">JAVA-3445</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938594">CDRIVER-3372</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938587">CXX-1821</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938595">GODRIVER-1319</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938589">MOTOR-394</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938585">NODE-2174</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938593">PHPC-1447</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938591">PYTHON-1987</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="938592">RUBY-1941</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="875789">SERVER-42418</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                            <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_23952" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Driver Compliance</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<style type='text/css'>
         #scriptField, #scriptField *{
                border: 1px solid black;
            }

            #scriptField{
                border-collapse: collapse;
            }

            #scriptField td {
                text-align: center; /* Center-align text in table cells */
            }

            #scriptField td.key {
                text-align: left; /* Left-align text in the Key column */
            }

            #scriptField a {
                text-decoration: none; /* Remove underlines from links */
                border: none; /* Remove border from links */
            }
            
            /* Add green background color to cells with FixVersion */
            #scriptField td.hasFixVersion {
                background-color: #00FF00; /* Green color code */
            }

            /* Center-align the first row headers */
            #scriptField th {
                text-align: center;
            }
        </style>
<table id='scriptField'>
  <tr>
    <th>Key</th>
    <th>Status/Resolution</th>
    <th>FixVersion</th>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/NODE-2174'>NODE-2174</a>
    </td>
    <td>Works as Designed</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/JAVA-3445'>JAVA-3445</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>4.1.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CXX-1821'>CXX-1821</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CSHARP-2752'>CSHARP-2752</a>
    </td>
    <td>Fixed</td>
    <td class='hasFixVersion'>2.11.0</td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/MOTOR-394'>MOTOR-394</a>
    </td>
    <td>Won't Fix</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PYTHON-1987'>PYTHON-1987</a>
    </td>
    <td>Won't Fix</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/RUBY-1941'>RUBY-1941</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/PHPC-1447'>PHPC-1447</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/CDRIVER-3372'>CDRIVER-3372</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
  <tr>
    <td class='key'>
      <a href='https://jira.mongodb.org/browse/GODRIVER-1319'>GODRIVER-1319</a>
    </td>
    <td>Won't Do</td>
    <td class=''></td>
  </tr>
</table>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvcz3z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11150" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>SERVER fixVersion</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16441"><![CDATA[4.4]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>4.3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>