<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:32 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-9156] Projection by a substring match</title>
                <link>https://jira.mongodb.org/browse/SERVER-9156</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Let&apos;s start from an example: suppose that each document in a collection contains a UserAgent string as a field. Androids have something like &quot;xxxxxx Android xxxx&quot;, iOS have something like &quot;xxxxxxx iPad/iPhone xxxxxx&quot;.&lt;/p&gt;

&lt;p&gt;I would like to count those documents, grouped by platform (Android, iPad, iPhone). To get the platform, all I need is to count them by a substring match. For example, /Android/ vs /iPad/ vs /iPhone/ (each counted separately).&lt;/p&gt;

&lt;p&gt;Any solution with aggregation framework will make it for me. I can clarify/whirpool on any request with pleasure.&lt;/p&gt;</description>
                <environment></environment>
        <key id="70047">SERVER-9156</key>
            <summary>Projection by a substring match</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="3">Duplicate</resolution>
                                        <assignee username="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="breakphreak">BreakPhreak</reporter>
                        <labels>
                            <label>expression</label>
                    </labels>
                <created>Thu, 28 Mar 2013 14:43:15 +0000</created>
                <updated>Tue, 6 Dec 2022 05:22:32 +0000</updated>
                            <resolved>Fri, 23 Jun 2017 20:09:48 +0000</resolved>
                                    <version>2.4.1</version>
                                                    <component>Aggregation Framework</component>
                                        <votes>5</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1605587" author="charlie.swanson" created="Fri, 23 Jun 2017 20:09:48 +0000"  >&lt;p&gt;This is now possible with $indexOf* expressions (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8951&quot; title=&quot;Add $findChar or $indexOf operator for strings to find position of specific character (or substring)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8951&quot;&gt;&lt;del&gt;SERVER-8951&lt;/del&gt;&lt;/a&gt;). A more general regex operator is also proposed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11947&quot; title=&quot;Add a regex expression to the aggregation language&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11947&quot;&gt;&lt;del&gt;SERVER-11947&lt;/del&gt;&lt;/a&gt;, so I&apos;m closing this ticket.&lt;/p&gt;

&lt;p&gt;Please re-open if this use-case is not covered by either of those.&lt;/p&gt;</comment>
                            <comment id="1468384" author="asya" created="Tue, 3 Jan 2017 18:06:59 +0000"  >&lt;p&gt;This is already possible now with $indexOf* (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8951&quot; title=&quot;Add $findChar or $indexOf operator for strings to find position of specific character (or substring)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8951&quot;&gt;&lt;del&gt;SERVER-8951&lt;/del&gt;&lt;/a&gt;) expressions, we can leave this ticket open to tracking adding simpler syntax for &quot;substringOf&quot; type of query, or we can close it as duplicate.&lt;/p&gt;</comment>
                            <comment id="928165" author="asya" created="Sun, 31 May 2015 01:29:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8951&quot; title=&quot;Add $findChar or $indexOf operator for strings to find position of specific character (or substring)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8951&quot;&gt;&lt;del&gt;SERVER-8951&lt;/del&gt;&lt;/a&gt; somewhat related as it&apos;s asking for &quot;index of&quot; operator which would allow using $substr in combination with &quot;index of&quot;/find in string to do what this ticket is asking for (though less elegantly).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="68110">SERVER-8951</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="101071">SERVER-11947</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 31 May 2015 01:29:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 33 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 33 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-query</customfieldvalue>
            <customfieldvalue>breakphreak</customfieldvalue>
            <customfieldvalue>charlie.swanson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmzg7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6405</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_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|hs9vrb:</customfieldvalue>

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