<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:55:20 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>[DOCS-7948] Comment on: &quot;manual/reference/operator/aggregation/filter.txt&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-7948</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;i have created the same collection sales, as shown in the example and executed the filter projection query.&lt;br/&gt;
the query throws an error asserting invalid operator $filter.&lt;/p&gt;

&lt;p&gt;assert: command failed: &lt;/p&gt;
{
	&quot;errmsg&quot; : &quot;exception: invalid operator &apos;$filter&apos;&quot;,
	&quot;code&quot; : 15999,
	&quot;ok&quot; : 0
}
&lt;p&gt; : aggregate failed&lt;br/&gt;
_getErrorWithCode@src/mongo/shell/utils.js:25:13&lt;br/&gt;
doassert@src/mongo/shell/assert.js:13:14&lt;br/&gt;
assert.commandWorked@src/mongo/shell/assert.js:267:5&lt;br/&gt;
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5&lt;br/&gt;
@(shell):1:1&lt;/p&gt;

&lt;p&gt;2016-05-24T11:24:01.257+0530 E QUERY    &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; Error: command failed: &lt;/p&gt;
{
	&quot;errmsg&quot; : &quot;exception: invalid operator &apos;$filter&apos;&quot;,
	&quot;code&quot; : 15999,
	&quot;ok&quot; : 0
}
&lt;p&gt; : aggregate failed :&lt;br/&gt;
_getErrorWithCode@src/mongo/shell/utils.js:25:13&lt;br/&gt;
doassert@src/mongo/shell/assert.js:13:14&lt;br/&gt;
assert.commandWorked@src/mongo/shell/assert.js:267:5&lt;br/&gt;
DBCollection.prototype.aggregate@src/mongo/shell/collection.js:1312:5&lt;br/&gt;
@(shell):1:1&lt;/p&gt;</description>
                <environment>mongodb v 3.2.6&lt;br/&gt;
ubuntu 14.04&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/aggregation/filter/#exp._S_filter&quot;&gt;https://docs.mongodb.com/manual/reference/operator/aggregation/filter/#exp._S_filter&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/projection/positional/&quot;&gt;https://docs.mongodb.com/manual/reference/operator/projection/positional/&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1366 x 768&lt;br/&gt;
</environment>
        <key id="288903">DOCS-7948</key>
            <summary>Comment on: &quot;manual/reference/operator/aggregation/filter.txt&quot;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="ravind.kumar">Ravind Kumar</assignee>
                                    <reporter username="xgen-internal-docs">Docs Collector User</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Tue, 24 May 2016 06:05:17 +0000</created>
                <updated>Fri, 3 Nov 2017 11:14:14 +0000</updated>
                            <resolved>Tue, 31 May 2016 15:37:41 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1279701" author="ravind.kumar" created="Tue, 31 May 2016 15:37:41 +0000"  >&lt;p&gt;User e-mailed 05/24. Closing ticket due to no response from user.&lt;/p&gt;</comment>
                            <comment id="1273426" author="ravind.kumar" created="Tue, 24 May 2016 14:24:09 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Can you confirm what version of mongodb you are running? You can simply type &lt;tt&gt;db.version()&lt;/tt&gt; into the mongo shell.&lt;/p&gt;

&lt;p&gt;Can you also provide the exact query you used that generated this error? I have tested our example code in MongoDB 3.2.4 and was able to get the expected results. &lt;tt&gt;$filter&lt;/tt&gt; is only available in MongoDB 3.2+&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 24 May 2016 06:08:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 37 weeks, 1 day 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_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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 37 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-docs</customfieldvalue>
            <customfieldvalue>ravind.kumar</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmriv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hslqun:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrz6pz:</customfieldvalue>

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