<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:50:46 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>[SERVER-60800] Allow $search in $lookup/$unionWith</title>
                <link>https://jira.mongodb.org/browse/SERVER-60800</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Allow $search to be used as target of $lookup and $unionWith.&lt;/p&gt;

&lt;p&gt;This will provide a better user experience in $search and allow for compatibility with a wider range of use cases.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1901655">SERVER-60800</key>
            <summary>Allow $search in $lookup/$unionWith</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="ruslan.abdulkhalikov@mongodb.com">Ruslan Abdulkhalikov</assignee>
                                    <reporter username="charlie.swanson@mongodb.com">Charlie Swanson</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Tue, 19 Oct 2021 02:10:29 +0000</created>
                <updated>Sun, 29 Oct 2023 21:47:13 +0000</updated>
                            <resolved>Mon, 28 Feb 2022 23:50:33 +0000</resolved>
                                                    <fixVersion>6.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>24</watches>
                                                                                                                <comments>
                            <comment id="4992508" author="JIRAUSER1253222" created="Fri, 18 Nov 2022 11:09:32 +0000"  >&lt;p&gt;Hi, I am using $search in $lookup.&lt;/p&gt;

&lt;p&gt;It might be useful for me to rely on $$correlated_variable defined in let: {}. Unfortunately, it is treated as literal string. Is there any plan to support it in the future?&#160;&lt;br/&gt;
Thanks.&lt;/p&gt;</comment>
                            <comment id="4381386" author="xgen-internal-githook" created="Mon, 28 Feb 2022 18:57:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ruslan Abdulkhalikov&apos;, &apos;email&apos;: &apos;ruslan.abdulkhalikov@mongodb.com&apos;, &apos;username&apos;: &apos;rusabd1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt;-enable-lookup-unionwith-nonsharded: Merge remote-tracking branch &apos;origin/master&apos; into &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt;-enable-lookup-unionwith-nonsharded&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ae17599108271d56a8cad70ec9b200929aeec401&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ae17599108271d56a8cad70ec9b200929aeec401&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4381384" author="xgen-internal-githook" created="Mon, 28 Feb 2022 18:57:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ruslan Abdulkhalikov&apos;, &apos;email&apos;: &apos;ruslan.abdulkhalikov@mongodb.com&apos;, &apos;username&apos;: &apos;rusabd1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt;-enable-lookup-unionwith-nonsharded: Merge remote-tracking branch &apos;origin/master&apos; into &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt;-enable-lookup-unionwith-nonsharded&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/c344f1b95df95a3a9c994e3715b16451ae59a0f7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/c344f1b95df95a3a9c994e3715b16451ae59a0f7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4361846" author="JIRAUSER1263890" created="Thu, 17 Feb 2022 16:42:37 +0000"  >&lt;p&gt;Also note that this ticket&apos;s work will not enable $searchMeta in $lookup/$unionWith.&#160; That will be added in &lt;a href=&quot;https://jira.mongodb.org/browse/PM-2729&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/PM-2729&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4341010" author="xgen-internal-githook" created="Tue, 8 Feb 2022 00:04:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ruslan.abdulkhalikov&apos;, &apos;email&apos;: &apos;ruslan.abdulkhalikov@mongodb.com&apos;, &apos;username&apos;: &apos;rusabd1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt; fix aggregation_cursor_invalidation tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/aac0bcaa238ecb28dace7d263789608474edb3c6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/aac0bcaa238ecb28dace7d263789608474edb3c6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4332241" author="xgen-internal-githook" created="Thu, 3 Feb 2022 00:31:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ruslan Abdulkhalikov&apos;, &apos;email&apos;: &apos;ruslan.abdulkhalikov@mongodb.com&apos;, &apos;username&apos;: &apos;rusabd1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-60800&quot; title=&quot;Allow $search in $lookup/$unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-60800&quot;&gt;&lt;del&gt;SERVER-60800&lt;/del&gt;&lt;/a&gt; add optional UUID to ResolvedNamespace&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f1664bad02c3ebf8593ae3418fc172e336d8f6cc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f1664bad02c3ebf8593ae3418fc172e336d8f6cc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4266862" author="pawel.terlecki" created="Fri, 24 Dec 2021 05:42:52 +0000"  >&lt;p&gt;i thought about it more. we should actually allow $$SEARCH_META to be defined as a variable associated with the pipeline rooted in $search. if users want to merge $$SEARCH_META from subbranches for unionWith or lookup they should be able to do it explicitly&lt;/p&gt;</comment>
                            <comment id="4139956" author="charlie.swanson" created="Thu, 21 Oct 2021 19:16:57 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=pawel.terlecki&quot; class=&quot;user-hover&quot; rel=&quot;pawel.terlecki&quot;&gt;pawel.terlecki&lt;/a&gt;&#160;it seems like we could do $searchMeta as well, yeah.&lt;/p&gt;

&lt;p&gt;Some interesting considerations from a team discussion on 10/21:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;$lookup could not necessarily be correlated. The arguments to $search are not interpreted as expressions and so something like &quot;$$correlated_variable&quot; would just be a string literal if used within $search.&lt;/li&gt;
	&lt;li&gt;$unionWith would have no guarantees about sort order between the branches. A manual sort could be added but would be in-memory and slow until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48120&quot; title=&quot;Optimize a $sort after a $unionWith&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48120&quot;&gt;SERVER-48120&lt;/a&gt; is resolved.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4131317" author="pawel.terlecki" created="Tue, 19 Oct 2021 03:45:36 +0000"  >&lt;p&gt;Can we also enable $searchMeta? Say if one wants to union searches in 3 collections and get these 3 counts.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="2027384">DOCS-15254</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2173595">SERVER-71036</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1970729">SERVER-62973</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1986203">SERVER-63816</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1986567">SERVER-63845</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="754381">SERVER-40949</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1347522">SERVER-48120</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2028611">SERVER-65808</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22676"><![CDATA[v5.2]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 19 Oct 2021 03:45:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 11 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>now $search can be used as first stage in the subpipeline of $lookup and $unionWith</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2571</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 11 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>179.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
            <customfieldvalue>daniele.tassone@genieai.co</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>pawel.terlecki@mongodb.com</customfieldvalue>
            <customfieldvalue>ruslan.abdulkhalikov@mongodb.com</customfieldvalue>
            <customfieldvalue>steve.tarzia@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i06ae7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2md3:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5278">QO 2021-12-27</customfieldvalue>
    <customfieldvalue id="5280">QO 2022-01-10</customfieldvalue>
    <customfieldvalue id="5282">QO 2022-01-24</customfieldvalue>
    <customfieldvalue id="5284">QO 2022-02-07</customfieldvalue>
    <customfieldvalue id="5286">QO 2022-02-21</customfieldvalue>
    <customfieldvalue id="5288">QO 2022-03-07</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i05wjj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>